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-02-07 19:07:29 +01:00
2016-12-31 11:01:21 -07:00
2017-01-27 21:22:35 +01:00
2017-01-12 11:52:45 -08:00
2016-12-01 16:14:45 -08:00
2017-01-16 19:33:08 +01:00
2017-03-27 23:44:08 +02:00
2017-05-31 10:53:47 +02:00
2017-06-05 19:01:16 +00:00
2017-02-17 09:04:37 +01:00
2016-12-12 11:08:47 -08:00
2017-01-05 11:11:17 +01:00
2017-03-31 11:47:50 +02:00
2016-09-30 19:58:11 +02:00
2017-06-05 19:01:16 +00:00
2016-12-31 11:01:21 -07:00
2017-01-28 16:57:08 +01:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2017-02-07 15:46:38 +01:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2017-01-27 21:22:35 +01:00
2015-12-14 02:11:10 +00:00
2017-01-10 12:04:54 +01:00
2015-05-22 02:56:55 +00:00
2017-03-31 11:47:50 +02:00
2015-05-22 02:56:55 +00:00
2016-12-31 11:01:21 -07:00
2017-01-16 22:58:06 -05:00
2017-01-27 21:22:35 +01:00
2017-01-27 18:13:20 +09:00
2016-12-31 11:01:21 -07:00
2017-01-27 18:13:20 +09:00
2017-01-12 14:21:43 +00:00
2017-02-16 19:31:03 +00:00
2017-01-11 08:21:37 -08:00
2015-12-13 18:08:39 +01:00
2015-12-13 18:08:39 +01:00
2017-02-10 11:04:34 +01:00
2017-01-04 13:18:49 -08:00
2017-01-04 13:18:49 -08:00
2015-12-13 18:08:39 +01:00
2016-12-31 11:01:21 -07:00
2017-06-02 07:39:56 +02:00
2017-01-04 14:56:17 -05:00
2017-01-04 11:56:17 -08:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2017-02-02 17:32:27 -05:00
2017-01-27 18:13:20 +09:00
2017-01-27 21:22:35 +01:00
2016-12-31 11:01:21 -07:00
2017-01-09 08:47:47 -08:00
2017-01-14 21:45:32 +01:00
2017-02-28 12:48:19 +01:00
2017-02-17 21:50:14 +01:00
2015-09-03 10:59:18 +02:00
2017-02-03 13:50:17 -05:00
2016-12-31 11:01:21 -07:00
2016-07-27 16:27:07 -07:00
2017-02-28 11:40:50 +01:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2015-12-13 18:08:39 +01:00
2016-12-31 11:01:21 -07:00
2017-05-31 10:54:19 +02:00
2017-01-09 14:07:02 -05:00
2016-09-29 17:27:28 +02:00
2017-01-11 13:45:28 +01:00
2016-12-17 12:27:00 +09:00
2017-01-12 13:41:32 +01:00
2016-12-31 11:01:21 -07:00
2017-01-27 18:13:20 +09:00
2016-12-31 11:01:21 -07:00
2017-03-30 15:18:02 -04:00
2017-03-30 15:18:02 -04:00
2017-02-14 14:42:29 +01:00
2017-01-31 23:45:47 +01:00
2017-06-01 13:26:12 +02:00
2017-04-14 10:35:49 +02:00
2016-12-31 11:01:21 -07:00
2017-01-27 21:22:35 +01:00
2017-01-04 12:21:53 +01:00
2017-01-04 12:21:53 +01:00
2017-01-31 23:29:28 +01:00
2016-12-31 11:01:21 -07:00
2016-01-05 21:01:39 +01:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2017-02-28 11:40:50 +01:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2017-01-27 18:13:20 +09:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2015-05-16 17:59:23 -04:00
2016-12-31 11:01:21 -07:00
2017-01-09 08:47:47 -08:00
2017-02-07 14:15:28 -05:00
2017-01-05 19:02:09 +00:00
2017-01-03 17:53:09 -05:00
2017-01-03 17:53:09 -05:00
2016-01-05 21:01:39 +01:00
2017-01-27 18:13:20 +09:00
2016-12-31 11:01:21 -07: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 18:13:20 +09:00
2017-04-05 08:23:02 +02:00
2017-04-05 08:37:12 +02:00
2017-01-27 21:22:35 +01:00
2016-09-26 01:11:27 +02:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2017-03-31 11:48:59 +02:00
2017-01-05 10:49:00 +01:00
2015-12-13 18:08:39 +01:00
2015-12-13 18:08:39 +01:00
2016-12-31 11:01:21 -07:00
2016-12-31 11:01:21 -07:00
2017-01-27 21:22:35 +01:00
2017-01-25 09:48:14 -05:00
2017-04-05 08:23:02 +02:00
2017-02-22 12:45:43 +01:00
2017-01-05 10:32:07 -05:00
2017-01-23 15:43:22 -05:00
2016-12-31 11:01:21 -07:00
2017-03-16 10:43:54 -04:00
2016-10-19 09:08:39 -04:00
2016-12-03 07:17:34 +00:00
2016-12-03 07:17:34 +00:00