Closes #26579
The -netinfo
dashboard did not list peers that were connected via “unroutable” networks. This included local peers including local-network peers. Personally, I run one bitcoind instance on my network that is used by other services like Wasabi Wallet and LND running on other machines.
This PR adds an “npr” (not publicly routable) column to the table of networks (ipv4, ipv6, onion, etc) so that every connection to the node is listed, and the totals are accurate as they relate to max inbound and max outbound limits.
Example connecting in regtest mode to one local and one remote peer:
0Bitcoin Core client v24.99.0-151ce099ea8f-dirty regtest - server 70016/Satoshi:24.99.0/
1
2<-> type net mping ping send recv txn blk hb addrp addrl age id address version
3 in npr 0 0 90 90 1 1 127.0.0.1:59180 70016/Satoshi:24.99.0/
4out manual ipv4 63 63 84 84 3 3 0 143.244.175.41 70016/Satoshi:24.0.1/
5 ms ms sec sec min min min
6
7 ipv4 ipv6 npr total block manual
8in 0 0 1 1
9out 1 0 0 1 0 1
10total 1 0 1 2
11
12Local addresses: n/a