mirror of
https://github.com/bitcoin-core/gui-qml.git
synced 2026-12-02 07:54:42 +00:00
Peers network filter has no choice for local, LAN or CJDNS peers, so any selection hides them #1113
Labels
No labels
Android
Bug
Build system
Design suggestion
Doc
Needs design review
Needs rebase
Stage
UX
Up for grabs
Upstream
Wallet
duplicate
enhancement
good first issue
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
bitcoin-core/gui-qml#1113
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
After step 2 the list is empty with No peers match your filters, while the footer still says 2 connected and
getpeerinfolists 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
unroutableandcjdns(peerlistsortproxy.cpp#L30-L40), and it rejects any row whose key is not among the ticked ones (#L240).127.0.0.1not counting as IPv4 follows Core's own classification, which reports it asnot_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
qt6ateed1f426fcb6, 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'sactivatedsignal, which is what a click on a row emits.