mirror of
https://github.com/lightninglabs/loop.git
synced 2026-08-13 12:33:03 +02:00
sweepbatcher: check of conf notification has tx
This commit is contained in:
parent
1794aa21e5
commit
0dc5d9eb69
1 changed files with 4 additions and 0 deletions
|
|
@ -2059,6 +2059,10 @@ func (b *batch) handleConf(ctx context.Context,
|
|||
conf *chainntnfs.TxConfirmation) error {
|
||||
|
||||
spendTx := conf.Tx
|
||||
if spendTx == nil {
|
||||
return fmt.Errorf("confirmation doesn't have spendTx, "+
|
||||
"height=%d, TxIndex=%d", conf.BlockHeight, conf.TxIndex)
|
||||
}
|
||||
txHash := spendTx.TxHash()
|
||||
if b.batchTxid == nil || *b.batchTxid != txHash {
|
||||
b.Warnf("Mismatch of batch txid: tx in spend notification had "+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue