fix: add transaction ID to new sweep error logs

This commit is contained in:
Sérgio Salgado 2022-08-16 15:47:06 +01:00
parent 0f507d0a54
commit 3daf0ac865
4 changed files with 9 additions and 8 deletions

View file

@ -206,9 +206,9 @@ function getStatus (settings, tx, machineId) {
})
}
function sweep (settings, cryptoCode, hdIndex) {
function sweep (settings, txId, cryptoCode, hdIndex) {
return fetchWallet(settings, cryptoCode)
.then(r => r.wallet.sweep(r.account, cryptoCode, hdIndex, settings, r.operatorId))
.then(r => r.wallet.sweep(r.account, txId, cryptoCode, hdIndex, settings, r.operatorId))
}
function isHd (settings, tx) {