multi: remove ChainRegistry
This commit is contained in:
1 parent
2a7fffe441
commit
031dbd7760
9 files changed
+24
-197
No files matched your search
@@ -177,8 +177,7 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,
|
||||
}
|
||||
|
||||
ltndLog.Infof("Active chain: %v (network=%v)",
|
||||
strings.Title(cfg.registeredChains.PrimaryChain().String()),
|
||||
network,
|
||||
strings.Title(BitcoinChainName), network,
|
||||
)
|
||||
|
||||
ctx := context.Background()
|
||||
@@ -453,12 +452,6 @@ func Main(cfg *Config, lisCfg ListenerCfg, implCfg *ImplementationCfg,
|
||||
|
||||
defer cleanUp()
|
||||
|
||||
// Finally before we start the server, we'll register the "holy
|
||||
// trinity" of interface for our current "home chain" with the active
|
||||
// chainRegistry interface.
|
||||
primaryChain := cfg.registeredChains.PrimaryChain()
|
||||
cfg.registeredChains.RegisterChain(primaryChain, activeChainControl)
|
||||
|
||||
// TODO(roasbeef): add rotation
|
||||
idKeyDesc, err := activeChainControl.KeyRing.DeriveKey(
|
||||
keychain.KeyLocator{
|
||||
|
||||
Reference in new issue
Block a user