From 2f8697152bf579dda29292634c546856ba4987df Mon Sep 17 00:00:00 2001 From: George Tsagkarelis Date: Mon, 13 Oct 2025 15:14:23 +0200 Subject: [PATCH] lnd: provide aux closer to chain arbitrator The final step is to provide the aux closer to the corresponding configs from the server. --- server.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/server.go b/server.go index 1c2db3d91..cc7d6bdec 100644 --- a/server.go +++ b/server.go @@ -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 {