aboutsummaryrefslogtreecommitdiff
path: root/src/chainparamsbase.h
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2015-05-25 09:00:17 +0200
committerJorge Timón <jtimon@jtimon.cc>2015-10-20 14:28:43 +0200
commit55a89751faaada5598771d10401030e9e86eecbd (patch)
tree87607d31265c50db8955f805d280faeb8e82ab03 /src/chainparamsbase.h
parentf3525e24e3a156eaa004ca28a59fe2d449dc1f9e (diff)
Chainparams: Translations: DRY: options and error strings
Also remove SelectBaseParamsFromCommandLine and SelectParamsFromCommandLine
Diffstat (limited to 'src/chainparamsbase.h')
-rw-r--r--src/chainparamsbase.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/chainparamsbase.h b/src/chainparamsbase.h
index 25a5b3450b..095c4cbdcb 100644
--- a/src/chainparamsbase.h
+++ b/src/chainparamsbase.h
@@ -19,7 +19,6 @@ public:
static const std::string MAIN;
static const std::string TESTNET;
static const std::string REGTEST;
- static const std::string MAX_NETWORK_TYPES;
const std::string& DataDir() const { return strDataDir; }
int RPCPort() const { return nRPCPort; }
@@ -32,6 +31,12 @@ protected:
};
/**
+ * Append the help messages for the chainparams options to the
+ * parameter string.
+ */
+void AppendParamsHelpMessages(std::string& strUsage, bool debugHelp=true);
+
+/**
* Return the currently selected parameters. This won't change after app
* startup, except for unit tests.
*/
@@ -47,12 +52,6 @@ void SelectBaseParams(const std::string& chain);
std::string ChainNameFromCommandLine();
/**
- * Calls NetworkIdFromCommandLine() and then calls SelectParams as appropriate.
- * Returns false if an invalid combination is given.
- */
-bool SelectBaseParamsFromCommandLine();
-
-/**
* Return true if SelectBaseParamsFromCommandLine() has been called to select
* a network.
*/