config+serer: add AuxFundingController as top level cfg option
This commit is contained in:
1 parent
84cc9a1f0b
commit
65f54cb075
2 files changed
+11
-3
No files matched your search
@@ -34,6 +34,7 @@ import (
|
|||||||
"github.com/lightningnetwork/lnd/channeldb"
|
"github.com/lightningnetwork/lnd/channeldb"
|
||||||
"github.com/lightningnetwork/lnd/clock"
|
"github.com/lightningnetwork/lnd/clock"
|
||||||
"github.com/lightningnetwork/lnd/fn"
|
"github.com/lightningnetwork/lnd/fn"
|
||||||
|
"github.com/lightningnetwork/lnd/funding"
|
||||||
"github.com/lightningnetwork/lnd/invoices"
|
"github.com/lightningnetwork/lnd/invoices"
|
||||||
"github.com/lightningnetwork/lnd/keychain"
|
"github.com/lightningnetwork/lnd/keychain"
|
||||||
"github.com/lightningnetwork/lnd/kvdb"
|
"github.com/lightningnetwork/lnd/kvdb"
|
||||||
@@ -167,6 +168,12 @@ type AuxComponents struct {
|
|||||||
// MsgRouter is an optional message router that if set will be used in
|
// MsgRouter is an optional message router that if set will be used in
|
||||||
// place of a new blank default message router.
|
// place of a new blank default message router.
|
||||||
MsgRouter fn.Option[msgmux.Router]
|
MsgRouter fn.Option[msgmux.Router]
|
||||||
|
|
||||||
|
// AuxFundingController is an optional controller that can be used to
|
||||||
|
// modify the way we handle certain custom channel types. It's also
|
||||||
|
// able to automatically handle new custom protocol messages related to
|
||||||
|
// the funding process.
|
||||||
|
AuxFundingController fn.Option[funding.AuxFundingController]
|
||||||
}
|
}
|
||||||
|
|
||||||
// DefaultWalletImpl is the default implementation of our normal, btcwallet
|
// DefaultWalletImpl is the default implementation of our normal, btcwallet
|
||||||
|
|||||||
@@ -1530,9 +1530,10 @@ func newServer(cfg *Config, listenAddrs []net.Addr,
|
|||||||
EnableUpfrontShutdown: cfg.EnableUpfrontShutdown,
|
EnableUpfrontShutdown: cfg.EnableUpfrontShutdown,
|
||||||
MaxAnchorsCommitFeeRate: chainfee.SatPerKVByte(
|
MaxAnchorsCommitFeeRate: chainfee.SatPerKVByte(
|
||||||
s.cfg.MaxCommitFeeRateAnchors * 1000).FeePerKWeight(),
|
s.cfg.MaxCommitFeeRateAnchors * 1000).FeePerKWeight(),
|
||||||
DeleteAliasEdge: deleteAliasEdge,
|
DeleteAliasEdge: deleteAliasEdge,
|
||||||
AliasManager: s.aliasMgr,
|
AliasManager: s.aliasMgr,
|
||||||
IsSweeperOutpoint: s.sweeper.IsSweeperOutpoint,
|
IsSweeperOutpoint: s.sweeper.IsSweeperOutpoint,
|
||||||
|
AuxFundingController: implCfg.AuxFundingController,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in new issue
Block a user