aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/send.js6
-rw-r--r--routes/send.js1
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/send.js b/lib/send.js
index 20b4c319..b8afd056 100644
--- a/lib/send.js
+++ b/lib/send.js
@@ -26,7 +26,8 @@ send = async (amount, memo, hash, user) => {
if (user.account.asset === config.liquid.btcasset)
account = await db.Account.findOne({
where: {
- id: user.account.id
+ id: user.account.id,
+ pubkey: null,
},
lock: transaction.LOCK.UPDATE,
transaction
@@ -95,7 +96,8 @@ send = async (amount, memo, hash, user) => {
if (user.account.asset === config.liquid.btcasset)
account = await db.Account.findOne({
where: {
- id: user.account.id
+ id: user.account.id,
+ pubkey: null,
},
lock: transaction.LOCK.UPDATE,
transaction
diff --git a/routes/send.js b/routes/send.js
index 83b1e501..e161ce65 100644
--- a/routes/send.js
+++ b/routes/send.js
@@ -26,6 +26,7 @@ module.exports = ah(async (req, res, next) => {
account = await db.Account.findOne({
where: {
id: user.account.id,
+ pubkey:null,
},
lock: transaction.LOCK.UPDATE,
transaction