mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-20 04:21:37 +02:00
chainntnfs: add Updates channel field to ConfirmationEvent
In this commit, we add a new Updates channel to our ConfirmationEvent struct. This channel will be used to deliver updates to a subscriber of a confirmation notification. Updates will be delivered at every incremental height of the chain with the number of confirmations remaining for the transaction to be considered confirmed by the subscriber.
This commit is contained in:
@@ -698,7 +698,7 @@ func (n *NeutrinoNotifier) RegisterConfirmationsNtfn(txid *chainhash.Hash,
|
||||
ConfNtfn: chainntnfs.ConfNtfn{
|
||||
TxID: txid,
|
||||
NumConfirmations: numConfs,
|
||||
Event: chainntnfs.NewConfirmationEvent(),
|
||||
Event: chainntnfs.NewConfirmationEvent(numConfs),
|
||||
},
|
||||
heightHint: heightHint,
|
||||
}
|
||||
|
Reference in New Issue
Block a user