Merge pull request #883 from shocknet/missed-tx-process

await tx added to db
This commit is contained in:
Justin (shocknet) 2026-02-19 16:38:51 -05:00 committed by GitHub
commit 6e8a181d34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -302,8 +302,11 @@ export default class {
const amount = Number(output.amount)
const outputIndex = Number(output.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)
.catch(err => log(ERROR, "failed to process user address output:", err.message || err))
try {
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
}