Remove gArgs global from CreateChainParams to aid testing

This commit is contained in:
MarcoFalke
2020-09-24 15:11:27 +02:00
parent e36aa351a3
commit fa23308e9a
9 changed files with 34 additions and 33 deletions

View File

@@ -119,7 +119,7 @@ protected:
* @returns a CChainParams* of the chosen chain.
* @throws a std::runtime_error if the chain is not supported.
*/
std::unique_ptr<const CChainParams> CreateChainParams(const std::string& chain);
std::unique_ptr<const CChainParams> CreateChainParams(const ArgsManager& args, const std::string& chain);
/**
* Return the currently selected parameters. This won't change after app