diff options
| author | Matt Corallo <[email protected]> | 2016-11-08 17:39:44 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-11-08 17:39:44 -0800 |
| commit | e2e069dabcd7e61e14bb7bceda6c19ec3afa358a (patch) | |
| tree | 6bc4af7b5961076e0e00c783dd1cf81ffee1fa98 | |
| parent | Merge #9087: RPC: why not give more details when "generate" fails? (diff) | |
| download | discoin-e2e069dabcd7e61e14bb7bceda6c19ec3afa358a.tar.xz discoin-e2e069dabcd7e61e14bb7bceda6c19ec3afa358a.zip | |
Revert "RPC: Give more details when "generate" fails"
This only returned information in the case of CheckBlock failure,
but breaks future changes.
| -rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 8824898fe..3e91a79a6 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -133,7 +133,7 @@ UniValue generateBlocks(boost::shared_ptr<CReserveScript> coinbaseScript, int nG } CValidationState state; if (!ProcessNewBlock(state, Params(), NULL, pblock, true, NULL, false)) - throw JSONRPCError(RPC_INTERNAL_ERROR, strprintf("ProcessNewBlock: block not accepted: %s", FormatStateMessage(state))); + throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted"); ++nHeight; blockHashes.push_back(pblock->GetHash().GetHex()); |