diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-08-21 20:13:40 +0200 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-08-24 07:45:17 +0200 |
commit | fa40017706e08b4de111e8e57aabeced60881a57 (patch) | |
tree | 7ed4294e423480fbfa745b17d2369ef149a96ec7 /src/init.h | |
parent | 197450f80868fe752c6107955e5da80704212b34 (diff) |
init: Pass reference to ArgsManager around instead of relying on global
Diffstat (limited to 'src/init.h')
-rw-r--r-- | src/init.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/init.h b/src/init.h index 20008ba5be..ce12a80dc7 100644 --- a/src/init.h +++ b/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. |