diff options
| author | MarcoFalke <[email protected]> | 2020-09-24 15:11:27 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-09-29 10:20:05 +0200 |
| commit | fa23308e9aad70c99a31f91d8556f1876ea02c04 (patch) | |
| tree | b506f748bfb0d71bde4c34500abf0bc0455040b6 /src/chainparams.h | |
| parent | Merge #19969: Send RPC bug fix and touch-ups (diff) | |
| download | discoin-fa23308e9aad70c99a31f91d8556f1876ea02c04.tar.xz discoin-fa23308e9aad70c99a31f91d8556f1876ea02c04.zip | |
Remove gArgs global from CreateChainParams to aid testing
Diffstat (limited to 'src/chainparams.h')
| -rw-r--r-- | src/chainparams.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chainparams.h b/src/chainparams.h index 7aa999fb7..d8b25c722 100644 --- a/src/chainparams.h +++ b/src/chainparams.h @@ -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 |