RPC: submitblock returns null on success, string on error

This commit is contained in:
Jeff Garzik 2012-08-21 02:41:46 -04:00 committed by Jeff Garzik
parent 7600e7fc39
commit a2168d94c0

View file

@ -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;
}