bitcoin/src/wallet
John Newbery 960bc7f778 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.
2017-03-07 16:45:09 -05:00
..
test Merge #9369: Factor out CWallet::nTimeSmart computation into a method. 2017-03-07 17:11:59 +01:00
coincontrol.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
crypter.cpp Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
crypter.h Increment MIT Licence copyright header year on files modified in 2016 2016-12-31 11:01:21 -07:00
db.cpp [Wallet] refactor CWallet/CWalletDB/CDB 2017-03-06 11:30:24 +01:00
db.h [Wallet] refactor CWallet/CWalletDB/CDB 2017-03-06 11:30:24 +01:00
rpcdump.cpp Return correct error codes in removeprunedfunds(). 2017-03-07 16:45:09 -05:00
rpcwallet.cpp Return correct error codes in bumpfee(). 2017-03-07 16:45:09 -05:00
rpcwallet.h Move wallet RPC declarations to rpcwallet.h 2017-02-27 20:45:18 +00:00
wallet.cpp Merge #9602: Remove coin age priority and free transactions - implementation 2017-03-07 19:30:23 +01:00
wallet.h Merge #9602: Remove coin age priority and free transactions - implementation 2017-03-07 19:30:23 +01:00
walletdb.cpp Rename FlushWalletDB -> CompactWalletDB, add function description 2017-03-06 18:35:20 -05:00
walletdb.h Rename FlushWalletDB -> CompactWalletDB, add function description 2017-03-06 18:35:20 -05:00