Revert "RPC: Give more details when "generate" fails"

This only returned information in the case of CheckBlock failure,
but breaks future changes.
This commit is contained in:
Matt Corallo 2016-11-08 17:39:44 -08:00
parent 924de0bd75
commit e2e069dabc
1 changed files with 1 additions and 1 deletions

View File

@ -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());