mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-28 14:40:51 +02:00
multi: extract wallet initialization
With this commit we extract the wallet creation/unlocking and initialization completely out of the main function. This will allow us to use custom implementations in the future.
This commit is contained in:
@@ -99,7 +99,7 @@ func Start(extraArgs string, rpcReady Callback) {
|
||||
Ready: rpcListening,
|
||||
}},
|
||||
}
|
||||
implCfg := loadedConfig.ImplementationConfig()
|
||||
implCfg := loadedConfig.ImplementationConfig(shutdownInterceptor)
|
||||
|
||||
// Call the "real" main in a nested manner so the defers will properly
|
||||
// be executed in the case of a graceful shutdown.
|
||||
|
Reference in New Issue
Block a user