htlcswitch: add an always on mode to interceptable switch

Co-authored-by: Juan Pablo Civile <elementohb@gmail.com>
This commit is contained in:
Joost Jager
2022-02-03 15:34:25 +01:00
parent 169f0c0bf4
commit ae314ec794
10 changed files with 201 additions and 54 deletions

View File

@@ -367,7 +367,9 @@ func createTestPeer(notifier chainntnfs.ChainNotifier,
Switch: mockSwitch,
ChanActiveTimeout: chanActiveTimeout,
InterceptSwitch: htlcswitch.NewInterceptableSwitch(nil),
InterceptSwitch: htlcswitch.NewInterceptableSwitch(
nil, false,
),
ChannelDB: dbAlice.ChannelStateDB(),
FeeEstimator: estimator,