htlcswitch: keep final htlc outcome

This commit is contained in:
Joost Jager
2022-05-10 12:33:44 +02:00
parent b85cda2a1d
commit 28256b7ea8
20 changed files with 466 additions and 111 deletions

View File

@ -1165,6 +1165,7 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
IsForwardedHTLC: s.htlcSwitch.IsForwardedHTLC,
Clock: clock.NewDefaultClock(),
SubscribeBreachComplete: s.breachArbiter.SubscribeBreachComplete,
PutFinalHtlcOutcome: s.chanStateDB.PutOnchainFinalHtlcOutcome, // nolint: lll
}, dbs.ChanStateDB)
// Select the configuration and furnding parameters for Bitcoin or