From b5607df482440b55bd3e802f5bea4ead95e6491e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 8 Sep 2020 07:26:14 -0700 Subject: bump account index --- lib/buildliquidtx.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/buildliquidtx.js') diff --git a/lib/buildliquidtx.js b/lib/buildliquidtx.js index aafaf049..cc1c3f10 100644 --- a/lib/buildliquidtx.js +++ b/lib/buildliquidtx.js @@ -22,6 +22,7 @@ module.exports = async ({ address, asset, amount, feeRate, user }) => { where: { received: true, account_id: user.account_id, + network: 'LBTC', }, }); @@ -36,7 +37,7 @@ module.exports = async ({ address, asset, amount, feeRate, user }) => { } let feeInput = utxos.find((utxo) => utxo.asset === btc && utxo.value > 1000); - if (!feeInput) throw new Error("Couldn't find fee input"); + if (!feeInput) throw new Error("Insufficient balance, couldn't find an input to cover the fee"); utxos = utxos.filter((utxo) => utxo.asset === asset); -- cgit v1.2.3