Files
bitcoin/src
Ava Chow 05aebe3790 Merge bitcoin/bitcoin#30930: netinfo: add peer services column and outbound-only option
87532fe558 netinfo: allow setting an outbound-only peer list (Jon Atack)
681ebcceca netinfo: rename and hoist max level constant to use in top-level help (Jon Atack)
e7d307ce8c netinfo: clarify relaytxes and addr_relay_enabled help docs (Jon Atack)
eef2a9d406 netinfo: add peer services column (Jon Atack)

Pull request description:

  Been using this since May 2023.

  - add a peer services column (considered displaying the p2p_v2 flag as "p" or "2"; proposing "2" here for continuity with the "v" column, but "p" is fine for me as well)
  - clarify in the help that "relaytxes" and "addr_relay_enabled" are from getpeerinfo
  - hoist (and rename) the max level constant to use in top-level help, to avoid overlooking to update the top-level help if the value of the constant changes (as caught by Larry Ruane in review below)
  - add an optional "outonly" (or "o") argument for an outbound-only peer list, as suggested by Vasil Dimov in his review below. Several people have requested this, to keep the output within screen limits when running netinfo as a live dashboard (i.e. with `watch`) on a node with many peers. While doing this, also permit passing "h" for the help in addition to "help".

ACKs for top commit:
  achow101:
    ACK 87532fe558
  rkrux:
    tACK 87532fe558
  tdb3:
    cr re ACK 87532fe558
  brunoerg:
    crACK 87532fe558

Tree-SHA512: 35b1b0de28dfecaad58bf5af194757a5e0f563553cf69ea4d76f2e1963f8d662717254df2549114c7bba4a041bf5282d5cb3fba8d436b2807f2a00560787d64c
2024-11-04 15:50:59 -05:00
..
2024-10-25 18:09:36 +01:00
…
2024-08-29 13:49:57 +02:00
…
…
…
…
2024-09-17 09:54:18 +02:00
…
…
…
…
…
…
2024-08-04 08:51:36 +02:00
2024-10-24 18:23:30 +02:00
2024-09-10 11:20:40 -03:00
…
…
…
…
2024-10-21 23:24:17 +02:00
2024-10-21 23:24:17 +02:00
…
2024-08-29 13:49:57 +02:00
…
2024-09-19 07:33:02 -04:00
2024-09-19 07:57:45 -04:00
…
…
2024-09-06 17:36:18 +02:00
…
2024-09-17 09:27:45 +02:00