mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-11 07:17:53 +00:00
RPC: submitblock returns null on success, string on error
This commit is contained in:
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…
Reference in New Issue
Block a user