contractcourt/chain_arbitrator: notify the ChannelNotifier on newly closed channels.

This commit is contained in:
Valentine Wallace
2018-10-21 20:40:02 -07:00
committed by Valentine Wallace
parent bdd8ce14c9
commit 10090a978d
2 changed files with 18 additions and 13 deletions

View File

@@ -742,8 +742,9 @@ func newServer(listenAddrs []net.Addr, chanDB *channeldb.DB, cc *chainControl,
DisableChannel: func(op wire.OutPoint) error {
return s.announceChanStatus(op, true)
},
Sweeper: s.sweeper,
SettleInvoice: s.invoices.SettleInvoice,
Sweeper: s.sweeper,
SettleInvoice: s.invoices.SettleInvoice,
NotifyClosedChannel: s.channelNotifier.NotifyClosedChannelEvent,
}, chanDB)
s.breachArbiter = newBreachArbiter(&BreachConfig{