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

@ -789,9 +789,10 @@ function plugins (settings, deviceId) {
}
function sweepHdRow (row) {
const txId = row.id
const cryptoCode = row.crypto_code
return wallet.sweep(settings, cryptoCode, row.hd_index)
return wallet.sweep(settings, txId, cryptoCode, row.hd_index)
.then(txHash => {
if (txHash) {
logger.debug('[%s] Swept address with tx: %s', cryptoCode, txHash)