Skip to content

Commit c98aeaa

Browse files
committed
config+serer: add AuxFundingController as top level cfg option
1 parent 716d4c0 commit c98aeaa

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

config_builder.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"github.com/lightningnetwork/lnd/channeldb"
3535
"github.com/lightningnetwork/lnd/clock"
3636
"github.com/lightningnetwork/lnd/fn"
37+
"github.com/lightningnetwork/lnd/funding"
3738
"github.com/lightningnetwork/lnd/invoices"
3839
"github.com/lightningnetwork/lnd/keychain"
3940
"github.com/lightningnetwork/lnd/kvdb"
@@ -150,6 +151,12 @@ type ImplementationCfg struct {
150151
// MsgRouter is an optional message router that if set will be used in
151152
// place of a new balnk default message router.
152153
MsgRouter fn.Option[protofsm.MsgRouter]
154+
155+
// AuxFundingController is an optional controller that can be used to
156+
// modify the way we handle certain custom chanenl types. It's also
157+
// able to automatically handle new custom protocol messages related to
158+
// the funding process.
159+
AuxFundingController fn.Option[funding.AuxFundingController]
153160
}
154161

155162
// DefaultWalletImpl is the default implementation of our normal, btcwallet

server.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,8 +1471,9 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
14711471
EnableUpfrontShutdown: cfg.EnableUpfrontShutdown,
14721472
MaxAnchorsCommitFeeRate: chainfee.SatPerKVByte(
14731473
s.cfg.MaxCommitFeeRateAnchors * 1000).FeePerKWeight(),
1474-
DeleteAliasEdge: deleteAliasEdge,
1475-
AliasManager: s.aliasMgr,
1474+
DeleteAliasEdge: deleteAliasEdge,
1475+
AliasManager: s.aliasMgr,
1476+
AuxFundingController: implCfg.AuxFundingController,
14761477
})
14771478
if err != nil {
14781479
return nil, err

0 commit comments

Comments
 (0)