Browse Source

Merge pull request #6039

27ce808 tests: Error when setgenerate is used on regtest (Wladimir J. van der Laan)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
734f80a5d1
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/rpcmining.cpp

2
src/rpcmining.cpp

@ -196,6 +196,8 @@ Value setgenerate(const Array& params, bool fHelp) @@ -196,6 +196,8 @@ Value setgenerate(const Array& params, bool fHelp)
if (pwalletMain == NULL)
throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method not found (disabled)");
if (Params().MineBlocksOnDemand())
throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Use the generate method instead of setgenerate on this network");
bool fGenerate = true;
if (params.size() > 0)

Loading…
Cancel
Save