dogecoin/src/rpc
John Newbery 4943d7a9fe 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.

Github-Pull: #9853
Rebased-From: a012087667
2017-06-05 19:01:16 +00:00
..
blockchain.cpp Return correct error codes in blockchain.cpp. 2017-06-05 19:01:16 +00:00
client.cpp rpc: Rename first named arg of createrawtransaction 2017-03-27 23:44:08 +02:00
client.h rpc: Named argument support for bitcoin-cli 2017-01-10 12:04:54 +01:00
mining.cpp Check transaction count early in submitblock. 2017-04-04 09:01:03 +02:00
misc.cpp Change bitcoin address in RPC helpaddress to an invalid address, so people don't accidentally send coins there (like I did). 2017-02-28 12:01:06 +01:00
net.cpp Return correct error codes in setban(). 2017-06-05 19:01:16 +00:00
protocol.cpp
protocol.h
rawtransaction.cpp rpc: Rename first named arg of createrawtransaction 2017-03-27 23:44:08 +02:00
register.h
server.cpp [rpc] Remove auth cookie on shutdown 2017-04-03 08:54:53 +02:00
server.h [wallet] Add include_unsafe argument to listunspent RPC 2017-01-19 11:29:29 -05:00