mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-08-26 06:21:55 +00:00
Merge pull request #6039
27ce808 tests: Error when setgenerate is used on regtest (Wladimir J. van der Laan)
This commit is contained in:
commit
734f80a5d1
@ -196,6 +196,8 @@ Value setgenerate(const Array& params, bool fHelp)
|
|||||||
|
|
||||||
if (pwalletMain == NULL)
|
if (pwalletMain == NULL)
|
||||||
throw JSONRPCError(RPC_METHOD_NOT_FOUND, "Method not found (disabled)");
|
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;
|
bool fGenerate = true;
|
||||||
if (params.size() > 0)
|
if (params.size() > 0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user