Rename RPC_TRANSACTION_* errors to RPC_VERIFY_* and use RPC_VERIFY_ERROR for submitblock

This commit is contained in:
Luke Dashjr
2014-06-26 14:39:27 +00:00
parent f877aaaf16
commit d29a2917ff
2 changed files with 9 additions and 4 deletions

View File

@@ -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