aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2014-06-26 14:39:27 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2014-10-21 04:48:31 +0000
commitd29a2917ff73f7e82b32bd94a87df3ee211a27c2 (patch)
tree798bcc1205ce3cf6abac276aba982fefae3f562a /src/rpcmining.cpp
parentf877aaaf16e40254bf685b4195b809138501feab (diff)
downloadbitcoin-d29a2917ff73f7e82b32bd94a87df3ee211a27c2.tar.xz
Rename RPC_TRANSACTION_* errors to RPC_VERIFY_* and use RPC_VERIFY_ERROR for submitblock
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp2
1 files changed, 1 insertions, 1 deletions
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