Page MenuHomePhabricator

Add -netinfo peer connections dashboard
ClosedPublic

Authored by Fabien on Mar 18 2021, 20:40.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABC02e6486e5d6d: Add -netinfo peer connections dashboard
Summary
This PR is inspired by laanwj's python script mentioned in #19405, which
it turns out I ended up using every day and extending because I got
hooked on using it to monitor Bitcoin peer connections.

For the full experience, run ./src/bitcoin-cli -netinfo 4

On Linux, try it with watch watch ./src/bitcoin-cli -netinfo 4

Help doc

$ ./src/bitcoin-cli -help | grep -A3 netinfo
  -netinfo
       Get network peer connection information from the remote server.
An
       optional integer argument from 0 to 4 can be passed for different
       peers listings (default: 0).

Backport of core#19643.

Depends on D9331 and D9333.

Test Plan
watch ./src/bitcoin-cli -netinfo 4