RPC: submitblock returns null on success, string on error
This commit is contained in:
parent
7600e7fc39
commit
a2168d94c0
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue