Skip to content

Commit a37c36c

Browse files
Roasbeefguggero
authored andcommitted
contractcourt: ensure auxResolver is hooked up to chainWatcher
1 parent fd36830 commit a37c36c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

contractcourt/chain_arbitrator.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,8 @@ func (c *ChainArbitrator) Start() error {
591591
isOurAddr: c.cfg.IsOurAddress,
592592
contractBreach: breachClosure,
593593
extractStateNumHint: lnwallet.GetStateNumHint,
594+
auxLeafStore: c.cfg.AuxLeafStore,
595+
auxResolver: c.cfg.AuxResolver,
594596
},
595597
)
596598
if err != nil {
@@ -1208,11 +1210,10 @@ func (c *ChainArbitrator) WatchNewChannel(newChan *channeldb.OpenChannel) error
12081210
// that we detect any relevant on chain events.
12091211
chainWatcher, err := newChainWatcher(
12101212
chainWatcherConfig{
1211-
chanState: newChan,
1212-
notifier: c.cfg.Notifier,
1213-
signer: c.cfg.Signer,
1214-
isOurAddr: c.cfg.IsOurAddress,
1215-
auxResolver: c.cfg.AuxResolver,
1213+
chanState: newChan,
1214+
notifier: c.cfg.Notifier,
1215+
signer: c.cfg.Signer,
1216+
isOurAddr: c.cfg.IsOurAddress,
12161217
contractBreach: func(
12171218
retInfo *lnwallet.BreachRetribution) error {
12181219

@@ -1221,6 +1222,8 @@ func (c *ChainArbitrator) WatchNewChannel(newChan *channeldb.OpenChannel) error
12211222
)
12221223
},
12231224
extractStateNumHint: lnwallet.GetStateNumHint,
1225+
auxLeafStore: c.cfg.AuxLeafStore,
1226+
auxResolver: c.cfg.AuxResolver,
12241227
},
12251228
)
12261229
if err != nil {

0 commit comments

Comments
 (0)