fix: allow cancelation of batched transactions
This commit is contained in:
parent
595e215dd5
commit
63853f116c
3 changed files with 6 additions and 3 deletions
|
|
@ -6,7 +6,8 @@ const wallet = require('./wallet')
|
|||
function submitBatch (settings, batch) {
|
||||
txBatching.getBatchTransactions(batch)
|
||||
.then(txs => {
|
||||
wallet.sendCoinsBatch(settings, txs, batch.crypto_code)
|
||||
if (_.isEmpty(txs)) return Promise.resolve()
|
||||
return wallet.sendCoinsBatch(settings, txs, batch.crypto_code)
|
||||
.then(res => txBatching.confirmSentBatch(batch, res))
|
||||
.catch(err => txBatching.setErroredBatch(batch, err.message))
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue