@@ -33,6 +33,55 @@ frequently tested on them.
33
33
Notable changes
34
34
===============
35
35
36
+ Low-level RPC changes
37
+ ---------------------
38
+
39
+ - Error codes have been updated to be more accurate for the following error cases:
40
+ - ` getblock ` now returns RPC_MISC_ERROR if the block can't be found on disk (for
41
+ example if the block has been pruned). Previously returned RPC_INTERNAL_ERROR.
42
+ - ` pruneblockchain ` now returns RPC_MISC_ERROR if the blocks cannot be pruned
43
+ because the node is not in pruned mode. Previously returned RPC_METHOD_NOT_FOUND.
44
+ - ` pruneblockchain ` now returns RPC_INVALID_PARAMETER if the blocks cannot be pruned
45
+ because the supplied timestamp is too late. Previously returned RPC_INTERNAL_ERROR.
46
+ - ` pruneblockchain ` now returns RPC_MISC_ERROR if the blocks cannot be pruned
47
+ because the blockchain is too short. Previously returned RPC_INTERNAL_ERROR.
48
+ - ` setban ` now returns RPC_CLIENT_INVALID_IP_OR_SUBNET if the supplied IP address
49
+ or subnet is invalid. Previously returned RPC_CLIENT_NODE_ALREADY_ADDED.
50
+ - ` setban ` now returns RPC_CLIENT_INVALID_IP_OR_SUBNET if the user tries to unban
51
+ a node that has not previously been banned. Previously returned RPC_MISC_ERROR.
52
+ - ` removeprunedfunds ` now returns RPC_WALLET_ERROR if bitcoind is unable to remove
53
+ the transaction. Previously returned RPC_INTERNAL_ERROR.
54
+ - ` removeprunedfunds ` now returns RPC_INVALID_PARAMETER if the transaction does not
55
+ exist in the wallet. Previously returned RPC_INTERNAL_ERROR.
56
+ - ` fundrawtransaction ` now returns RPC_INVALID_ADDRESS_OR_KEY if an invalid change
57
+ address is provided. Previously returned RPC_INVALID_PARAMETER.
58
+ - ` fundrawtransaction ` now returns RPC_WALLET_ERROR if bitcoind is unable to create
59
+ the transaction. The error message provides further details. Previously returned
60
+ RPC_INTERNAL_ERROR.
61
+ - ` bumpfee ` now returns RPC_INVALID_PARAMETER if the provided transaction has
62
+ descendants in the wallet. Previously returned RPC_MISC_ERROR.
63
+ - ` bumpfee ` now returns RPC_INVALID_PARAMETER if the provided transaction has
64
+ descendants in the mempool. Previously returned RPC_MISC_ERROR.
65
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the provided transaction has
66
+ has been mined or conflicts with a mined transaction. Previously returned
67
+ RPC_INVALID_ADDRESS_OR_KEY.
68
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the provided transaction is not
69
+ BIP 125 replaceable. Previously returned RPC_INVALID_ADDRESS_OR_KEY.
70
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the provided transaction has already
71
+ been bumped by a different transaction. Previously returned RPC_INVALID_REQUEST.
72
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the provided transaction contains
73
+ inputs which don't belong to this wallet. Previously returned RPC_INVALID_ADDRESS_OR_KEY.
74
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the provided transaction has multiple change
75
+ outputs. Previously returned RPC_MISC_ERROR.
76
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the provided transaction has no change
77
+ output. Previously returned RPC_MISC_ERROR.
78
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the fee is too high. Previously returned
79
+ RPC_MISC_ERROR.
80
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the fee is too low. Previously returned
81
+ RPC_MISC_ERROR.
82
+ - ` bumpfee ` now returns RPC_WALLET_ERROR if the change output is too small to bump the
83
+ fee. Previously returned RPC_MISC_ERROR.
84
+
36
85
Credits
37
86
=======
38
87
0 commit comments