diff options
| author | jtimon <[email protected]> | 2014-06-12 14:52:12 +0200 |
|---|---|---|
| committer | jtimon <[email protected]> | 2014-06-17 13:11:36 +0200 |
| commit | f6984e814134d2383e1353ce8aa951649f5fcbd2 (patch) | |
| tree | 1fde9706d9339161c32c870ee6bc4955654a4680 /src/rpcmining.cpp | |
| parent | Get rid of Params().RPCisTestNet() (diff) | |
| download | discoin-f6984e814134d2383e1353ce8aa951649f5fcbd2.tar.xz discoin-f6984e814134d2383e1353ce8aa951649f5fcbd2.zip | |
Add "chain" to getmininginfo, improve help in getblockchaininfo
Diffstat (limited to 'src/rpcmining.cpp')
| -rw-r--r-- | src/rpcmining.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index e18e44c5e..57a51c0fd 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -253,6 +253,7 @@ Value getmininginfo(const Array& params, bool fHelp) " \"hashespersec\": n (numeric) The hashes per second of the generation, or 0 if no generation.\n" " \"pooledtx\": n (numeric) The size of the mem pool\n" " \"testnet\": true|false (boolean) If using testnet or not\n" + " \"chain\": \"xxxx\", (string) current network name as defined in BIP70 (main, test, regtest)\n" "}\n" "\nExamples:\n" + HelpExampleCli("getmininginfo", "") @@ -269,6 +270,7 @@ Value getmininginfo(const Array& params, bool fHelp) obj.push_back(Pair("networkhashps", getnetworkhashps(params, false))); obj.push_back(Pair("pooledtx", (uint64_t)mempool.size())); obj.push_back(Pair("testnet", Params().NetworkID() == CChainParams::TESTNET)); + obj.push_back(Pair("chain", Params().NetworkIDString())); #ifdef ENABLE_WALLET obj.push_back(Pair("generate", getgenerate(params, false))); obj.push_back(Pair("hashespersec", gethashespersec(params, false))); |