From d29a2917ff73f7e82b32bd94a87df3ee211a27c2 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 26 Jun 2014 14:39:27 +0000 Subject: Rename RPC_TRANSACTION_* errors to RPC_VERIFY_* and use RPC_VERIFY_ERROR for submitblock --- src/rpcmining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rpcmining.cpp') diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index a6494163aa..28076607b4 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -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 -- cgit v1.2.3