mirror of https://github.com/zcash/zips.git
Require error messages for false boolean results
This commit is contained in:
parent
30d06746c9
commit
4a8cce90b7
|
@ -115,12 +115,18 @@ Request::
|
|||
|
||||
Response::
|
||||
|
||||
{"id": 2, "result": AUTHENTICATED, "error": null}\n
|
||||
{"id": 2, "result": AUTHORIZED, "error": "MESSAGE"}\n
|
||||
|
||||
``AUTHENTICATED`` (bool)
|
||||
The result of authentication.
|
||||
``AUTHORIZED`` (bool)
|
||||
Whether authorization succeeded.
|
||||
|
||||
The server MAY provide an error message on invalid authentication.
|
||||
``MESSAGE`` (str)
|
||||
An error message. MUST be ``null`` if authorization succeeded.
|
||||
|
||||
If authorization failed, the server MUST provide an error message describing
|
||||
the reason.
|
||||
|
||||
[TODO: Specify format of error messages]
|
||||
|
||||
``mining.set_target()``
|
||||
-----------------------
|
||||
|
@ -202,13 +208,18 @@ Request::
|
|||
|
||||
Result::
|
||||
|
||||
{"id": 4, "result": ACCEPTED, "error": null}\n
|
||||
{"id": 4, "result": ACCEPTED, "error": "MESSAGE"}\n
|
||||
|
||||
``ACCEPTED`` (bool)
|
||||
Whether the block was accepted.
|
||||
|
||||
The server MAY provide an error message describing the reason for not accepting
|
||||
the block, if any.
|
||||
``MESSAGE`` (str)
|
||||
An error message. MUST be ``null`` if the block was accepted.
|
||||
|
||||
If the block was not accepted, the server MUST provide an error message
|
||||
describing the reason for not accepting the block.
|
||||
|
||||
[TODO: Specify format of error messages]
|
||||
|
||||
``client.reconnect()``
|
||||
----------------------
|
||||
|
|
Loading…
Reference in New Issue