lnd: provide aux closer to chain arbitrator

The final step is to provide the aux closer to the corresponding configs
from the server.
This commit is contained in:
George Tsagkarelis committed 2025-12-04 12:18:46 +01:00
1 parent 9a88999c41
commit 2f8697152b
1 file changed
+7 -2
+7 -2
View File
@@ -61,7 +61,7 @@ import (
"github.com/lightningnetwork/lnd/lnutils"
"github.com/lightningnetwork/lnd/lnwallet"
"github.com/lightningnetwork/lnd/lnwallet/chainfee"
"github.com/lightningnetwork/lnd/lnwallet/chancloser"
chcl "github.com/lightningnetwork/lnd/lnwallet/chancloser"
"github.com/lightningnetwork/lnd/lnwallet/chanfunding"
"github.com/lightningnetwork/lnd/lnwallet/rpcwallet"
"github.com/lightningnetwork/lnd/lnwire"
@@ -1370,6 +1370,11 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
AuxLeafStore: implCfg.AuxLeafStore,
AuxSigner: implCfg.AuxSigner,
AuxResolver: implCfg.AuxContractResolver,
AuxCloser: fn.MapOption(
func(c chcl.AuxChanCloser) contractcourt.AuxChanCloser {
return c
},
)(implCfg.AuxChanCloser),
}, dbs.ChanStateDB)
// Select the configuration and funding parameters for Bitcoin.
@@ -1447,7 +1452,7 @@ func newServer(ctx context.Context, cfg *Config, listenAddrs []net.Addr,
}
// Attempt to parse the provided upfront-shutdown address (if any).
script, err := chancloser.ParseUpfrontShutdownAddress(
script, err := chcl.ParseUpfrontShutdownAddress(
cfg.UpfrontShutdownAddr, cfg.ActiveNetParams.Params,
)
if err != nil {