Browse Source

RPC: submitblock returns null on success, string on error

0.8
Jeff Garzik 13 years ago committed by Jeff Garzik
parent
commit
a2168d94c0
  1. 4
      src/rpcmining.cpp

4
src/rpcmining.cpp

@ -373,8 +373,8 @@ Value submitblock(const Array& params, bool fHelp) @@ -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;
}

Loading…
Cancel
Save