diff options
| author | Jeff Garzik <[email protected]> | 2012-08-21 02:41:46 -0400 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-08-21 02:41:46 -0400 |
| commit | a2168d94c077543c538b5e9c1450d60f33301b33 (patch) | |
| tree | 7d7a0b70fed32b03575e61560f080f1e19092f09 /src/rpcmining.cpp | |
| parent | RPC, cosmetic: Create rpcmining.cpp as new home for mining-related RPC code (diff) | |
| download | discoin-a2168d94c077543c538b5e9c1450d60f33301b33.tar.xz discoin-a2168d94c077543c538b5e9c1450d60f33301b33.zip | |
RPC: submitblock returns null on success, string on error
Diffstat (limited to 'src/rpcmining.cpp')
| -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 5d983d21d..fa6fdd6d3 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; } |