mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 14:38:29 +01:00
init: Pass reference to ArgsManager around instead of relying on global
This commit is contained in:
10
src/init.h
10
src/init.h
@@ -8,8 +8,8 @@
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <util/system.h>
|
||||
|
||||
class ArgsManager;
|
||||
struct NodeContext;
|
||||
namespace interfaces {
|
||||
struct BlockAndHeaderTipInfo;
|
||||
@@ -25,21 +25,21 @@ class Ref;
|
||||
void Interrupt(NodeContext& node);
|
||||
void Shutdown(NodeContext& node);
|
||||
//!Initialize the logging infrastructure
|
||||
void InitLogging();
|
||||
void InitLogging(const ArgsManager& args);
|
||||
//!Parameter interaction: change current parameters depending on various rules
|
||||
void InitParameterInteraction();
|
||||
void InitParameterInteraction(ArgsManager& args);
|
||||
|
||||
/** Initialize bitcoin core: Basic context setup.
|
||||
* @note This can be done before daemonization. Do not call Shutdown() if this function fails.
|
||||
* @pre Parameters should be parsed and config file should be read.
|
||||
*/
|
||||
bool AppInitBasicSetup();
|
||||
bool AppInitBasicSetup(ArgsManager& args);
|
||||
/**
|
||||
* Initialization: parameter interaction.
|
||||
* @note This can be done before daemonization. Do not call Shutdown() if this function fails.
|
||||
* @pre Parameters should be parsed and config file should be read, AppInitBasicSetup should have been called.
|
||||
*/
|
||||
bool AppInitParameterInteraction();
|
||||
bool AppInitParameterInteraction(const ArgsManager& args);
|
||||
/**
|
||||
* Initialization sanity checks: ecc init, sanity checks, dir lock.
|
||||
* @note This can be done before daemonization. Do not call Shutdown() if this function fails.
|
||||
|
||||
Reference in New Issue
Block a user