mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
refactor: index, decouple 'Init' from 'Start'
So indexes can be initialized without spawning the sync thread. This makes asynchronous indexes startup possible in the following commits.
This commit is contained in:
@@ -74,6 +74,6 @@ bool AppInitMain(node::NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip
|
||||
void SetupServerArgs(ArgsManager& argsman);
|
||||
|
||||
/** Validates requirements to run the indexes and spawns each index initial sync thread */
|
||||
bool StartIndexes(node::NodeContext& node);
|
||||
bool StartIndexBackgroundSync(node::NodeContext& node);
|
||||
|
||||
#endif // BITCOIN_INIT_H
|
||||
|
||||
Reference in New Issue
Block a user