@@ -34,6 +34,7 @@ import (
34
34
"github.com/lightningnetwork/lnd/channeldb"
35
35
"github.com/lightningnetwork/lnd/clock"
36
36
"github.com/lightningnetwork/lnd/fn"
37
+ "github.com/lightningnetwork/lnd/funding"
37
38
"github.com/lightningnetwork/lnd/invoices"
38
39
"github.com/lightningnetwork/lnd/keychain"
39
40
"github.com/lightningnetwork/lnd/kvdb"
@@ -167,6 +168,20 @@ type AuxComponents struct {
167
168
// MsgRouter is an optional message router that if set will be used in
168
169
// place of a new blank default message router.
169
170
MsgRouter fn.Option [msgmux.Router ]
171
+
172
+ // AuxFundingController is an optional controller that can be used to
173
+ // modify the way we handle certain custom channel 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 ]
177
+
178
+ // AuxSigner is an optional signer that can be used to sign auxiliary
179
+ // leaves for certain custom channel types.
180
+ AuxSigner fn.Option [lnwallet.AuxSigner ]
181
+
182
+ // AuxDataParser is an optional data parser that can be used to parse
183
+ // auxiliary data for certain custom channel types.
184
+ AuxDataParser fn.Option [AuxDataParser ]
170
185
}
171
186
172
187
// DefaultWalletImpl is the default implementation of our normal, btcwallet
@@ -573,6 +588,7 @@ func (d *DefaultWalletImpl) BuildWalletConfig(ctx context.Context,
573
588
ChanStateDB : dbs .ChanStateDB .ChannelStateDB (),
574
589
NeutrinoCS : neutrinoCS ,
575
590
AuxLeafStore : aux .AuxLeafStore ,
591
+ AuxSigner : aux .AuxSigner ,
576
592
ActiveNetParams : d .cfg .ActiveNetParams ,
577
593
FeeURL : d .cfg .FeeURL ,
578
594
Fee : & lncfg.Fee {
@@ -730,6 +746,7 @@ func (d *DefaultWalletImpl) BuildChainControl(
730
746
NetParams : * walletConfig .NetParams ,
731
747
CoinSelectionStrategy : walletConfig .CoinSelectionStrategy ,
732
748
AuxLeafStore : partialChainControl .Cfg .AuxLeafStore ,
749
+ AuxSigner : partialChainControl .Cfg .AuxSigner ,
733
750
}
734
751
735
752
// The broadcast is already always active for neutrino nodes, so we
@@ -912,10 +929,6 @@ type DatabaseInstances struct {
912
929
// for native SQL queries for tables that already support it. This may
913
930
// be nil if the use-native-sql flag was not set.
914
931
NativeSQLStore * sqldb.BaseDB
915
-
916
- // AuxLeafStore is an optional data source that can be used by custom
917
- // channels to fetch+store various data.
918
- AuxLeafStore fn.Option [lnwallet.AuxLeafStore ]
919
932
}
920
933
921
934
// DefaultDatabaseBuilder is a type that builds the default database backends
0 commit comments