chainregistry: add the keyRing and walletController to chainControl
This commit is contained in:
1 file changed
+6
@@ -107,6 +107,10 @@ type chainControl struct {
|
|||||||
|
|
||||||
signer lnwallet.Signer
|
signer lnwallet.Signer
|
||||||
|
|
||||||
|
keyRing keychain.KeyRing
|
||||||
|
|
||||||
|
wc lnwallet.WalletController
|
||||||
|
|
||||||
msgSigner lnwallet.MessageSigner
|
msgSigner lnwallet.MessageSigner
|
||||||
|
|
||||||
chainNotifier chainntnfs.ChainNotifier
|
chainNotifier chainntnfs.ChainNotifier
|
||||||
@@ -502,6 +506,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB,
|
|||||||
cc.msgSigner = wc
|
cc.msgSigner = wc
|
||||||
cc.signer = wc
|
cc.signer = wc
|
||||||
cc.chainIO = wc
|
cc.chainIO = wc
|
||||||
|
cc.wc = wc
|
||||||
|
|
||||||
// Select the default channel constraints for the primary chain.
|
// Select the default channel constraints for the primary chain.
|
||||||
channelConstraints := defaultBtcChannelConstraints
|
channelConstraints := defaultBtcChannelConstraints
|
||||||
@@ -512,6 +517,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB,
|
|||||||
keyRing := keychain.NewBtcWalletKeyRing(
|
keyRing := keychain.NewBtcWalletKeyRing(
|
||||||
wc.InternalWallet(), activeNetParams.CoinType,
|
wc.InternalWallet(), activeNetParams.CoinType,
|
||||||
)
|
)
|
||||||
|
cc.keyRing = keyRing
|
||||||
|
|
||||||
// Create, and start the lnwallet, which handles the core payment
|
// Create, and start the lnwallet, which handles the core payment
|
||||||
// channel logic, and exposes control via proxy state machines.
|
// channel logic, and exposes control via proxy state machines.
|
||||||
|
|||||||
Reference in new issue
Block a user