chainntnfs: extend SpendEvent with reorg channel

In this commit, we add a new channel within the SpendEvent struct that
will be sent upon whenever the spending transaction of the registered
outpoint gets reorged out of the chain. This will pave the road for
successfully handling a funding transaction getting reorged out of the
chain among other things.
This commit is contained in:
Wilmer Paulino
2018-10-05 02:07:55 -07:00
parent f4128c9afb
commit 87123d5e23
2 changed files with 45 additions and 13 deletions

View File

@@ -126,14 +126,6 @@ type HistoricalConfDispatch struct {
EndHeight uint32
}
// NewConfirmationEvent constructs a new ConfirmationEvent with newly opened
// channels.
func NewConfirmationEvent(numConfs uint32) *ConfirmationEvent {
return &ConfirmationEvent{
Confirmed: make(chan *TxConfirmation, 1),
Updates: make(chan uint32, numConfs),
NegativeConf: make(chan int32, 1),
}
}
// TxNotifier is used to register transaction confirmation notifications and