aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2017-02-07 12:57:37 -0500
committerJohn Newbery <[email protected]>2017-03-07 16:45:09 -0500
commita012087667edb35a36f25ae06b42b1644d80e649 (patch)
tree38f3fb5b4d2a65acbc926c3661cbf59b7feda8be /src/httpserver.cpp
parentReturn correct error codes in removeprunedfunds(). (diff)
downloaddiscoin-a012087667edb35a36f25ae06b42b1644d80e649.tar.xz
discoin-a012087667edb35a36f25ae06b42b1644d80e649.zip
Return correct error codes in setban().
The setban() RPC was returning misleading or incorrect error codes (for example RPC_CLIENT_NODE_ALREADY_ADDED when an invalid IP address was entered). This commit fixes those error codes: - RPC_CLIENT_INVALID_IP_OR_SUBNET should be returned if the client enters an invalid IP address or subnet. This commit also updates the test cases to explicitly test the error code. This commit also adds a testcase for trying to setban on an invalid subnet.
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions