mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
Rename RPC_TRANSACTION_* errors to RPC_VERIFY_* and use RPC_VERIFY_ERROR for submitblock
This commit is contained in:
@@ -589,7 +589,7 @@ Value submitblock(const Array& params, bool fHelp)
|
||||
if (state.IsError())
|
||||
{
|
||||
std::string strRejectReason = state.GetRejectReason();
|
||||
throw JSONRPCError(RPC_MISC_ERROR, strRejectReason);
|
||||
throw JSONRPCError(RPC_VERIFY_ERROR, strRejectReason);
|
||||
}
|
||||
if (state.IsInvalid())
|
||||
return "rejected"; // TODO: report validation state
|
||||
|
||||
Reference in New Issue
Block a user