diff options
author | furszy <matiasfurszyfer@protonmail.com> | 2023-06-16 10:16:22 -0300 |
---|---|---|
committer | furszy <matiasfurszyfer@protonmail.com> | 2023-07-07 19:31:27 -0300 |
commit | 225e213110602b4fd1d345167f5f92d26557f6c1 (patch) | |
tree | 7f5e352803344f9d6a43347cfc6fe225a474e04a /src/init.h | |
parent | 2ebc7e68cc9d347807b646f601b27940c9590c89 (diff) | |
download | bitcoin-225e213110602b4fd1d345167f5f92d26557f6c1.tar.xz |
refactor: init indexes, decouple 'Start()' from the creation step
No behavior change.
The goal here is to group indexes, so we can perform the same
initialization and verification process equally for all of them.
The checks performed inside `StartIndexes` will be expanded
in the subsequent commits.
Diffstat (limited to 'src/init.h')
-rw-r--r-- | src/init.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.h b/src/init.h index 4dcf3fc51e..a050a76b3c 100644 --- a/src/init.h +++ b/src/init.h @@ -73,4 +73,7 @@ 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); + #endif // BITCOIN_INIT_H |