aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-08-21 02:41:46 -0400
committerJeff Garzik <jgarzik@redhat.com>2012-08-21 02:41:46 -0400
commita2168d94c077543c538b5e9c1450d60f33301b33 (patch)
tree7d7a0b70fed32b03575e61560f080f1e19092f09 /src/rpcmining.cpp
parent7600e7fc399b46bf126e22fa8681d812c844124e (diff)
RPC: submitblock returns null on success, string on error
Diffstat (limited to 'src/rpcmining.cpp')
-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;
}