Merge pull request #883 from shocknet/missed-tx-process
await tx added to db
This commit is contained in:
commit
6e8a181d34
1 changed files with 5 additions and 2 deletions
|
|
@ -302,8 +302,11 @@ export default class {
|
||||||
const amount = Number(output.amount)
|
const amount = Number(output.amount)
|
||||||
const outputIndex = Number(output.outputIndex)
|
const outputIndex = Number(output.outputIndex)
|
||||||
log(`processing missed chain tx: address=${output.address}, txHash=${tx.txHash}, amount=${amount}, outputIndex=${outputIndex}`)
|
log(`processing missed chain tx: address=${output.address}, txHash=${tx.txHash}, amount=${amount}, outputIndex=${outputIndex}`)
|
||||||
this.addressPaidCb({ hash: tx.txHash, index: outputIndex }, output.address, amount, 'lnd', startHeight)
|
try {
|
||||||
.catch(err => log(ERROR, "failed to process user address output:", err.message || err))
|
await this.addressPaidCb({ hash: tx.txHash, index: outputIndex }, output.address, amount, 'lnd', startHeight)
|
||||||
|
} catch (err: any) {
|
||||||
|
log(ERROR, "failed to process user address output:", err.message || err)
|
||||||
|
}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue