feat: add batch_time and batched to cash_in_txs
feat: add batched flag to clear tx to send feat: add batch information to front-end feat: change transaction sending info on batch sending fix: batching support function added to all wallet plugins fix: mock-wallet batching check feat: send machine information about batchable coins
This commit is contained in:
parent
8289c55acf
commit
00c38ea721
8 changed files with 43 additions and 19 deletions
|
|
@ -120,15 +120,27 @@ function postProcess (r, pi, isBlacklisted, addressReuse, failedWalletScore) {
|
|||
if (!cashInLow.isClearToSend(r.dbTx, r.tx)) return Promise.resolve({})
|
||||
|
||||
return pi.sendCoins(r.tx)
|
||||
.then(txObj => ({
|
||||
txHash: txObj.txid,
|
||||
fee: txObj.fee,
|
||||
sendConfirmed: true,
|
||||
sendTime: 'now()^',
|
||||
sendPending: false,
|
||||
error: null,
|
||||
errorCode: null
|
||||
}))
|
||||
.then(txObj => {
|
||||
if (txObj.batched) {
|
||||
return {
|
||||
batched: true,
|
||||
batchTime: 'now()^',
|
||||
sendPending: true,
|
||||
error: null,
|
||||
errorCode: null
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
txHash: txObj.txid,
|
||||
fee: txObj.fee,
|
||||
sendConfirmed: true,
|
||||
sendTime: 'now()^',
|
||||
sendPending: false,
|
||||
error: null,
|
||||
errorCode: null
|
||||
}
|
||||
})
|
||||
.catch(err => {
|
||||
// Important: We don't know what kind of error this is
|
||||
// so not safe to assume that funds weren't sent.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue