Skip to content

Commit 3f5f7ed

Browse files
committed
lnd: provide aux closer to chain arbitrator
The final step is to provide the aux closer to the corresponding configs from the server. Here we use an adapter pattern which returns an aux chan closer as defined in the contractcourt package.
1 parent e8c0a63 commit 3f5f7ed

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

server.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import (
6060
"github.com/lightningnetwork/lnd/lnutils"
6161
"github.com/lightningnetwork/lnd/lnwallet"
6262
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
63+
chcl "github.com/lightningnetwork/lnd/lnwallet/chancloser"
6364
"github.com/lightningnetwork/lnd/lnwallet/chanfunding"
6465
"github.com/lightningnetwork/lnd/lnwallet/rpcwallet"
6566
"github.com/lightningnetwork/lnd/lnwire"
@@ -1375,6 +1376,11 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
13751376
AuxLeafStore: implCfg.AuxLeafStore,
13761377
AuxSigner: implCfg.AuxSigner,
13771378
AuxResolver: implCfg.AuxContractResolver,
1379+
AuxCloser: fn.MapOption(
1380+
func(c chcl.AuxChanCloser) contractcourt.AuxChanCloser {
1381+
return c
1382+
},
1383+
)(implCfg.AuxChanCloser),
13781384
}, dbs.ChanStateDB)
13791385

13801386
// Select the configuration and funding parameters for Bitcoin.

0 commit comments

Comments
 (0)