diff options
author | Jeff Garzik <jgarzik@exmulti.com> | 2012-08-21 02:41:46 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-08-21 02:41:46 -0400 |
commit | a2168d94c077543c538b5e9c1450d60f33301b33 (patch) | |
tree | 7d7a0b70fed32b03575e61560f080f1e19092f09 /src | |
parent | 7600e7fc399b46bf126e22fa8681d812c844124e (diff) |
RPC: submitblock returns null on success, string on error
Diffstat (limited to 'src')
-rw-r--r-- | src/rpcmining.cpp | 4 |
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; } |