Skip to content

Commit bb71c49

Browse files
Roasbeefguggero
authored andcommitted
config+serer: add AuxFundingController as top level cfg option
1 parent 2f6e7ef commit bb71c49

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
@@ -35,6 +35,7 @@ import (
3535
"github.com/lightningnetwork/lnd/channeldb"
3636
"github.com/lightningnetwork/lnd/clock"
3737
"github.com/lightningnetwork/lnd/fn"
38+
"github.com/lightningnetwork/lnd/funding"
3839
"github.com/lightningnetwork/lnd/invoices"
3940
"github.com/lightningnetwork/lnd/keychain"
4041
"github.com/lightningnetwork/lnd/kvdb"
@@ -167,6 +168,12 @@ type AuxComponents struct {
167168
// MsgRouter is an optional message router that if set will be used in
168169
// place of a new blank default message router.
169170
MsgRouter fn.Option[protofsm.MsgRouter]
171+
172+
// AuxFundingController is an optional controller that can be used to
173+
// modify the way we handle certain custom chanenl types. It's also
174+
// able to automatically handle new custom protocol messages related to
175+
// the funding process.
176+
AuxFundingController fn.Option[funding.AuxFundingController]
170177
}
171178

172179
// 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
@@ -1505,8 +1505,9 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
15051505
EnableUpfrontShutdown: cfg.EnableUpfrontShutdown,
15061506
MaxAnchorsCommitFeeRate: chainfee.SatPerKVByte(
15071507
s.cfg.MaxCommitFeeRateAnchors * 1000).FeePerKWeight(),
1508-
DeleteAliasEdge: deleteAliasEdge,
1509-
AliasManager: s.aliasMgr,
1508+
DeleteAliasEdge: deleteAliasEdge,
1509+
AliasManager: s.aliasMgr,
1510+
AuxFundingController: implCfg.AuxFundingController,
15101511
})
15111512
if err != nil {
15121513
return nil, err

0 commit comments

Comments
 (0)