From e2e069dabcd7e61e14bb7bceda6c19ec3afa358a Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 8 Nov 2016 17:39:44 -0800 Subject: [PATCH] Revert "RPC: Give more details when "generate" fails" This only returned information in the case of CheckBlock failure, but breaks future changes. --- src/rpc/mining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 8824898febddc..3e91a79a649a1 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -133,7 +133,7 @@ UniValue generateBlocks(boost::shared_ptr 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());