aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorLuke Dashjr <[email protected]>2014-06-26 14:39:27 +0000
committerLuke Dashjr <[email protected]>2014-10-21 04:48:31 +0000
commitd29a2917ff73f7e82b32bd94a87df3ee211a27c2 (patch)
tree798bcc1205ce3cf6abac276aba982fefae3f562a /src/rpcmining.cpp
parentBugfix: submitblock: Use a temporary CValidationState to determine accurately... (diff)
downloaddiscoin-d29a2917ff73f7e82b32bd94a87df3ee211a27c2.tar.xz
discoin-d29a2917ff73f7e82b32bd94a87df3ee211a27c2.zip
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 a6494163a..28076607b 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