Add detailed network info to getnetworkinfo RPC#4605
Conversation
Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better.
Allows other parts of the program to query for reachable status of a network. Similar to IsLimited(net).
Returns the network name for an Network enum.
|
Only item I see is "proxy" changing in JSON output -- do we care about backwards compat here? ACK otherwise |
|
|
src/rpcnet.cpp
Outdated
There was a problem hiding this comment.
Nit: Misses a , after [ and it's an (array) not (object).
There was a problem hiding this comment.
No, there should be no , after [.
Good catch on the array versus object though.
|
Looks good, after fixing the nits this an untested ACK ;). |
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4605_0590a54818ceb6c907c7ff6ff2f1a28d5ef383b2/ for binaries and test log. |
src/rpcnet.cpp
Outdated
There was a problem hiding this comment.
Another small nit: In the help message we have IPv4, IPv6 or Onion.
There was a problem hiding this comment.
I prefer to use lowercase here. People will be using case-sensitive comparisons on this output, and thus using only lowercase rules out one source of typos.
I know that the -help documentation shows the network names uppercased, which is IMO a bit strange, but we do case-insensitive comparison so for us it doesn't matter.
There was a problem hiding this comment.
I wasn't talking about uppercase, just , vs. or ;).
This commit adds per-network information to the getnetworkinfo RPC call: - Is the network limited? - Is the network reachable - Which proxy is used for this network, if any Inspired by bitcoin#2575.
Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better. Conflicts: src/init.cpp Rebased-from: 60dc8e4208058814494b301c355a5996af9517a9 bitcoin/bitcoin#4605
Allows other parts of the program to query for reachable status of a network. Similar to IsLimited(net). Rebased-from: c91a9471be7a96311a7e1452a3624aa557bc185d bitcoin/bitcoin#4605
Returns the network name for an Network enum. Rebased-from: 075cf49e593025030c8b3572e606960f15de424e bitcoin/bitcoin#4605
This commit adds per-network information to the getnetworkinfo RPC call: - Is the network limited? - Is the network reachable - Which proxy is used for this network, if any Inspired by #2575. Conflicts: src/init.cpp src/rpcnet.cpp Rebased-from: aa8279513b5d206c172d3da3d5e3034c61d47b39 bitcoin/bitcoin#4605
Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better. Conflicts: src/init.cpp Rebased-from: 60dc8e4 bitcoin#4605
Allows other parts of the program to query for reachable status of a network. Similar to IsLimited(net). Rebased-from: c91a947 bitcoin#4605
Returns the network name for an Network enum. Rebased-from: 075cf49 bitcoin#4605
This commit adds per-network information to the getnetworkinfo RPC call: - Is the network limited? - Is the network reachable - Which proxy is used for this network, if any Inspired by bitcoin#2575. Conflicts: src/init.cpp src/rpcnet.cpp Rebased-from: aa82795 bitcoin#4605
Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better. Conflicts: src/init.cpp Rebased-from: 60dc8e4 bitcoin#4605
Allows other parts of the program to query for reachable status of a network. Similar to IsLimited(net). Rebased-from: c91a947 bitcoin#4605
Returns the network name for an Network enum. Rebased-from: 075cf49 bitcoin#4605
This commit adds per-network information to the getnetworkinfo RPC call: - Is the network limited? - Is the network reachable - Which proxy is used for this network, if any Inspired by bitcoin#2575. Conflicts: src/init.cpp src/rpcnet.cpp Rebased-from: aa82795 bitcoin#4605
Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better. Conflicts: src/init.cpp Rebased-from: 60dc8e4 bitcoin#4605
Allows other parts of the program to query for reachable status of a network. Similar to IsLimited(net). Rebased-from: c91a947 bitcoin#4605
Returns the network name for an Network enum. Rebased-from: 075cf49 bitcoin#4605
This commit adds per-network information to the getnetworkinfo RPC call: - Is the network limited? - Is the network reachable - Which proxy is used for this network, if any Inspired by bitcoin#2575. Conflicts: src/init.cpp src/rpcnet.cpp Rebased-from: aa82795 bitcoin#4605
Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better. Conflicts: src/init.cpp Rebased-from: 60dc8e4 bitcoin#4605
Allows other parts of the program to query for reachable status of a network. Similar to IsLimited(net). Rebased-from: c91a947 bitcoin#4605
Returns the network name for an Network enum. Rebased-from: 075cf49 bitcoin#4605
This commit adds per-network information to the getnetworkinfo RPC call: - Is the network limited? - Is the network reachable - Which proxy is used for this network, if any Inspired by bitcoin#2575. Conflicts: src/init.cpp src/rpcnet.cpp Rebased-from: aa82795 bitcoin#4605
Just an alias for onlynet=tor, but matches the new name of the proxy option -onion= better. Conflicts: src/init.cpp Rebased-from: 60dc8e4 bitcoin#4605
Allows other parts of the program to query for reachable status of a network. Similar to IsLimited(net). Rebased-from: c91a947 bitcoin#4605
Returns the network name for an Network enum. Rebased-from: 075cf49 bitcoin#4605
This commit adds per-network information to the getnetworkinfo RPC call: - Is the network limited? - Is the network reachable - Which proxy is used for this network, if any Inspired by bitcoin#2575. Conflicts: src/init.cpp src/rpcnet.cpp Rebased-from: aa82795 bitcoin#4605
This pull adds per-network information to the getnetworkinfo RPC call:
Inspired by #2575.
(After these changes it is also allowed to use
-onlynet=onioninstead of-onlynet=tor, as I like it better to call the networkonion)