dogecoin/src/rpc
John Newbery fe51c8924e Return correct error codes in blockchain.cpp.
RPCs in blockchain.cpp were returning misleading or incorrect error
codes (for example getblock() returning RPC_INTERNAL_ERROR when the
block had been pruned). This commit fixes those error codes:

- RPC_INTERNAL_ERROR should not be returned for application-level
  errors, only for genuine internal errors such as corrupted data.
- RPC_METHOD_NOT_FOUND should not be returned in response to a
  JSON request for an existing method.

Those error codes have been replaced with RPC_MISC_ERROR or
RPC_INVALID_PARAMETER as appropriate.

Github-Pull: #9853
Rebased-From: c1190963b3
2017-06-05 19:01:16 +00:00
..
blockchain.cpp Return correct error codes in blockchain.cpp. 2017-06-05 19:01:16 +00:00
client.cpp rpc: Rename first named arg of createrawtransaction 2017-03-27 23:44:08 +02:00
client.h rpc: Named argument support for bitcoin-cli 2017-01-10 12:04:54 +01:00
mining.cpp Check transaction count early in submitblock. 2017-04-04 09:01:03 +02:00
misc.cpp Change bitcoin address in RPC helpaddress to an invalid address, so people don't accidentally send coins there (like I did). 2017-02-28 12:01:06 +01:00
net.cpp [rpc] rename disconnectnode argument 2017-04-14 10:19:06 +02:00
protocol.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
protocol.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
rawtransaction.cpp rpc: Rename first named arg of createrawtransaction 2017-03-27 23:44:08 +02:00
register.h Do not shadow global RPC table variable (tableRPC) 2016-08-25 15:02:26 +02:00
server.cpp [rpc] Remove auth cookie on shutdown 2017-04-03 08:54:53 +02:00
server.h [wallet] Add include_unsafe argument to listunspent RPC 2017-01-19 11:29:29 -05:00