Peers network filter has no choice for local, LAN or CJDNS peers, so any selection hides them #1113

Open
opened 2026-11-10 22:37:42 +00:00 by jarolrod · 0 comments
jarolrod commented 2026-11-10 22:37:42 +00:00 (Migrated from github.com)

The Network filter on the Peers page offers IPv4, IPv6, Onion and I2P. Peers that Core classes as not publicly routable, such as localhost and private-range addresses, are listed as Unroutable, and no filter choice matches them. Ticking any choice hides them.

To reproduce on regtest with two localhost peers connected, one inbound and one outbound:

  1. Open Peers. Both rows are listed with network Unroutable, and the footer says 2 connected.
  2. Open the Network filter and tick IPv4.
  3. Tick IPv6, then Onion, then I2P.
  4. Tick only IPv4 again, quit, start the app and reconnect the peers.

After step 2 the list is empty with No peers match your filters, while the footer still says 2 connected and getpeerinfo lists both peers. It stays empty with two or three choices ticked. Ticking the fourth clears the filter and both rows return. After step 4 the page opens empty again, because the choice is saved, until Clear filters is used.

The Direction filter on the same peers worked as labelled: Inbound showed one row and Outbound the other.

The page offers four network choices (Peers.qml#L37-L42). The filter model also has keys for unroutable and cjdns (peerlistsortproxy.cpp#L30-L40), and it rejects any row whose key is not among the ticked ones (#L240). 127.0.0.1 not counting as IPv4 follows Core's own classification, which reports it as not_publicly_routable. The gap is that no offered choice selects these peers, and the empty state does not say why.

Expected: offer choices for Unroutable and CJDNS peers, or leave peers without a matching choice out of the network filter.

The affected peers are a local or LAN node added by hand, CJDNS peers, and every peer on regtest or a local signet. The filter set came with #889. #1105 is a separate Peers search report.

Reproduced on merged qt6 at eed1f426fcb6, macOS / Qt 6.9, isolated regtest, offscreen and native. Only localhost peers were run; the LAN and CJDNS cases follow from the code. The ticks were delivered through the test bridge by emitting the picker's activated signal, which is what a click on a row emits.

The **Network** filter on the Peers page offers IPv4, IPv6, Onion and I2P. Peers that Core classes as not publicly routable, such as localhost and private-range addresses, are listed as **Unroutable**, and no filter choice matches them. Ticking any choice hides them. To reproduce on regtest with two localhost peers connected, one inbound and one outbound: 1. Open **Peers**. Both rows are listed with network **Unroutable**, and the footer says **2 connected**. 2. Open the **Network** filter and tick **IPv4**. 3. Tick **IPv6**, then **Onion**, then **I2P**. 4. Tick only **IPv4** again, quit, start the app and reconnect the peers. After step 2 the list is empty with **No peers match your filters**, while the footer still says **2 connected** and `getpeerinfo` lists both peers. It stays empty with two or three choices ticked. Ticking the fourth clears the filter and both rows return. After step 4 the page opens empty again, because the choice is saved, until **Clear filters** is used. The Direction filter on the same peers worked as labelled: Inbound showed one row and Outbound the other. The page offers four network choices ([Peers.qml#L37-L42](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/pages/node/Peers.qml#L37-L42)). The filter model also has keys for `unroutable` and `cjdns` ([peerlistsortproxy.cpp#L30-L40](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/models/peerlistsortproxy.cpp#L30-L40)), and it rejects any row whose key is not among the ticked ones ([#L240](https://github.com/bitcoin-core/gui-qml/blob/eed1f426fcb64daa61b004590335a03afe376274/qml/models/peerlistsortproxy.cpp#L240)). `127.0.0.1` not counting as IPv4 follows Core's own classification, which reports it as `not_publicly_routable`. The gap is that no offered choice selects these peers, and the empty state does not say why. Expected: offer choices for Unroutable and CJDNS peers, or leave peers without a matching choice out of the network filter. The affected peers are a local or LAN node added by hand, CJDNS peers, and every peer on regtest or a local signet. The filter set came with #889. #1105 is a separate Peers search report. Reproduced on merged `qt6` at `eed1f426fcb6`, macOS / Qt 6.9, isolated regtest, offscreen and native. Only localhost peers were run; the LAN and CJDNS cases follow from the code. The ticks were delivered through the test bridge by emitting the picker's `activated` signal, which is what a click on a row emits.
Sign in to join this conversation.
No description provided.