aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rpcmining.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 5d983d21d4..fa6fdd6d35 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -373,8 +373,8 @@ Value submitblock(const Array& params, bool fHelp)
bool fAccepted = ProcessBlock(NULL, &block);
if (!fAccepted)
- throw JSONRPCError(-23, "Block rejected");
+ return "rejected";
- return true;
+ return Value::null;
}