Permalink
Please sign in to comment.
Browse files
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: 960bc7f
- Loading branch information...
Showing
with
4 additions
and 14 deletions.
- +2 −12 qa/rpc-tests/importprunedfunds.py
- +2 −2 src/wallet/rpcdump.cpp
0 comments on commit
18c109d