RPC: submitblock returns null on success, string on error

pull/1691/head
Jeff Garzik 12 years ago committed by Jeff Garzik
parent 7600e7fc39
commit a2168d94c0

@ -373,8 +373,8 @@ Value submitblock(const Array& params, bool fHelp)
bool fAccepted = ProcessBlock(NULL, &block); bool fAccepted = ProcessBlock(NULL, &block);
if (!fAccepted) if (!fAccepted)
throw JSONRPCError(-23, "Block rejected"); return "rejected";
return true; return Value::null;
} }

Loading…
Cancel
Save