mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
chainntnfs: fix recursive loop, add additional logging
This commit is contained in:
parent
80b09f7d6f
commit
39044cb2fa
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,6 @@ func (b *BtcdNotifier) onBlockConnected(hash *wire.ShaHash, height int32, t time
|
|||
|
||||
// onBlockDisconnected implements on OnBlockDisconnected callback for btcrpcclient.
|
||||
func (b *BtcdNotifier) onBlockDisconnected(hash *wire.ShaHash, height int32, t time.Time) {
|
||||
b.onBlockDisconnected(hash, height, t)
|
||||
}
|
||||
|
||||
// onRedeemingTx implements on OnRedeemingTx callback for btcrpcclient.
|
||||
|
@ -248,6 +247,9 @@ out:
|
|||
SpenderInputIndex: uint32(i),
|
||||
}
|
||||
|
||||
chainntnfs.Log.Infof("Dispatching "+
|
||||
"spend notification for "+
|
||||
"outpoint=%v", ntfn.targetOutpoint)
|
||||
ntfn.spendChan <- spendDetails
|
||||
delete(b.spendNotifications, prevOut)
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue