Skip to content

Commit

Permalink
Revert "RPC: Give more details when "generate" fails"
Browse files Browse the repository at this point in the history
This only returned information in the case of CheckBlock failure,
but breaks future changes.
  • Loading branch information
TheBlueMatt committed Nov 9, 2016
1 parent 924de0b commit e2e069d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpc/mining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit e2e069d

Please sign in to comment.