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:
Wilmer Paulino
2018-03-19 14:48:44 -04:00
parent 706cc02639
commit 486694a84e
6 changed files with 48 additions and 23 deletions

View File

@@ -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,
}