mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
refactor: Create interfaces earlier during initialization
Add AppInitInterfaces function so wallet chain and chain client interfaces are created earlier during initialization. This is needed in the next commit to allow the gui splash screen to be able to register for wallet events through a dedicated WalletClient interface instead managing wallets indirectly through the Node interface. This only works if the wallet client interface is created before the splash screen needs to use it.
This commit is contained in:
parent
15886b08aa
commit
b266b3e0bf
4 changed files with 17 additions and 10 deletions
|
|
@ -64,11 +64,10 @@ public:
|
|||
bool baseInitialize() override
|
||||
{
|
||||
return AppInitBasicSetup(gArgs) && AppInitParameterInteraction(gArgs) && AppInitSanityChecks() &&
|
||||
AppInitLockDataDirectory();
|
||||
AppInitLockDataDirectory() && AppInitInterfaces(*m_context);
|
||||
}
|
||||
bool appInitMain(interfaces::BlockAndHeaderTipInfo* tip_info) override
|
||||
{
|
||||
m_context->chain = MakeChain(*m_context);
|
||||
return AppInitMain(m_context_ref, *m_context, tip_info);
|
||||
}
|
||||
void appShutdown() override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue