Files
bitcoin/src
John Newbery c1190963b3 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.
2017-03-07 16:45:09 -05:00
..
2017-01-27 21:22:35 +01:00
2016-12-01 16:14:45 -08:00
2016-12-12 11:08:47 -08:00
2017-01-27 21:22:35 +01:00
2017-02-17 17:27:18 +01:00
2017-01-27 21:22:35 +01:00
2017-01-14 21:45:32 +01:00
2017-02-17 15:28:28 -08:00
2017-02-23 01:06:04 -05:00
2017-01-27 21:22:35 +01:00
2016-06-27 18:17:27 +02:00
2017-01-27 21:22:35 +01:00
2017-01-27 21:22:35 +01:00