mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-19 19:29:45 +02:00
316a0c5132rpc: addpeeraddress: throw on invalid IP (John Moffett) Pull request description: Right now we return an opaque `{"success" : false}` in `addpeeraddress` for an empty or invalid IP. This changes it to throw `RPC_CLIENT_INVALID_IP_OR_SUBNET` with the error message `Invalid IP address`. Tests updated to match. ACKs for top commit: sipa: utACK316a0c5132achow101: ACK316a0c5132vasild: ACK316a0c5132pablomartin4btc: tACK316a0c5132Tree-SHA512: 79a8ce127d0a24b2eb1f31bc3294b895d0c6424032a6b49168259e0e94aff69723d067adf1b4dc3c9b79e597531e5b65e4b8fc5a8e21fba0b81f99168de12b96
29 KiB
Executable File
29 KiB
Executable File