mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2026-02-20 05:54:34 +01:00
chainntnfs: fix recursive loop, add additional logging
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user