Skip to content

Commit e2e069d

Browse files
committed
Revert "RPC: Give more details when "generate" fails"
This only returned information in the case of CheckBlock failure, but breaks future changes.
1 parent 924de0b commit e2e069d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rpc/mining.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ UniValue generateBlocks(boost::shared_ptr<CReserveScript> coinbaseScript, int nG
133133
}
134134
CValidationState state;
135135
if (!ProcessNewBlock(state, Params(), NULL, pblock, true, NULL, false))
136-
throw JSONRPCError(RPC_INTERNAL_ERROR, strprintf("ProcessNewBlock: block not accepted: %s", FormatStateMessage(state)));
136+
throw JSONRPCError(RPC_INTERNAL_ERROR, "ProcessNewBlock, block not accepted");
137137
++nHeight;
138138
blockHashes.push_back(pblock->GetHash().GetHex());
139139

0 commit comments

Comments
 (0)