Files
bitcoin/src
John Newbery 18c109ddb1 Return correct error codes in removeprunedfunds().
The removeprunedfunds() RPC was returning misleading or incorrect error
codes (for example RPC_INTERNAL_ERROR when the transaction was
not found in the wallet). 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.

This error code has been replaced with RPC_WALLET_ERROR.

This commit also updates the test cases to explicitly test the error code.

Github-Pull: #9853
Rebased-From: 960bc7f778
2017-06-05 19:01:16 +00: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
2015-12-13 18:08:39 +01:00
2017-06-02 07:39:56 +02:00
2017-01-04 11:56:17 -08:00
2017-01-27 21:22:35 +01:00
2017-01-14 21:45:32 +01:00
2017-02-28 12:48:19 +01:00
2015-09-03 10:59:18 +02:00
2015-12-13 18:08:39 +01:00
2017-04-14 10:35:49 +02:00
2017-01-27 21:22:35 +01:00
2016-01-05 21:01:39 +01:00
2015-05-16 17:59:23 -04:00
2016-01-05 21:01:39 +01:00
2016-06-27 18:17:27 +02:00
2017-01-27 21:22:35 +01:00
2015-11-12 17:58:15 +01:00
2017-01-27 21:22:35 +01:00
2015-12-13 18:08:39 +01:00
2017-01-27 21:22:35 +01:00