mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
Optionally populate BlockAndHeaderTipInfo during AppInitMain
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
#include <util/system.h>
|
||||
|
||||
struct NodeContext;
|
||||
namespace interfaces {
|
||||
struct BlockAndHeaderTipInfo;
|
||||
}
|
||||
namespace boost {
|
||||
class thread_group;
|
||||
} // namespace boost
|
||||
@@ -54,7 +57,7 @@ bool AppInitLockDataDirectory();
|
||||
* @note This should only be done after daemonization. Call Shutdown() if this function fails.
|
||||
* @pre Parameters should be parsed and config file should be read, AppInitLockDataDirectory should have been called.
|
||||
*/
|
||||
bool AppInitMain(const util::Ref& context, NodeContext& node);
|
||||
bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info = nullptr);
|
||||
|
||||
/**
|
||||
* Register all arguments with the ArgsManager
|
||||
|
||||
Reference in New Issue
Block a user