diff options
| author | John Newbery <[email protected]> | 2017-02-09 15:48:39 -0500 |
|---|---|---|
| committer | John Newbery <[email protected]> | 2017-03-07 16:45:09 -0500 |
| commit | dab804c18a427901684ebe936b2069a97e04a268 (patch) | |
| tree | 66c7c787b90e18241aa37b92087c2a834afb802e /src/httpserver.cpp | |
| parent | Return correct error codes in setban(). (diff) | |
| download | discoin-dab804c18a427901684ebe936b2069a97e04a268.tar.xz discoin-dab804c18a427901684ebe936b2069a97e04a268.zip | |
Return correct error codes in fundrawtransaction().
The fundrawtransaction() RPC was returning misleading or incorrect error
codes (for example RPC_INTERNAL_ERROR when funding the transaction
failed). 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.
That error code has been replaced with RPC_WALLET_ERROR.
This commit also updates the test cases to explicitly test the error code.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions