aboutsummaryrefslogtreecommitdiff
path: root/src/rpc
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2016-11-08 17:39:44 -0800
committerMatt Corallo <git@bluematt.me>2016-11-08 17:39:44 -0800
commite2e069dabcd7e61e14bb7bceda6c19ec3afa358a (patch)
tree6bc4af7b5961076e0e00c783dd1cf81ffee1fa98 /src/rpc
parent924de0bd75a7f75df65d7d15f9d1587a2e794abf (diff)
downloadbitcoin-e2e069dabcd7e61e14bb7bceda6c19ec3afa358a.tar.xz
Revert "RPC: Give more details when "generate" fails"
This only returned information in the case of CheckBlock failure, but breaks future changes.
Diffstat (limited to 'src/rpc')
-rw-r--r--src/rpc/mining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp
index 8824898feb..3e91a79a64 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());