Skip to content

fix(network): expire stale and unreachable peers from the network participant list - #72

Open
lukyrys wants to merge 23 commits into
mainfrom
fix/442-prune-stale-discovered-peers
Open

fix(network): expire stale and unreachable peers from the network participant list#72
lukyrys wants to merge 23 commits into
mainfrom
fix/442-prune-stale-discovered-peers

Conversation

@lukyrys

@lukyrys lukyrys commented Jul 23, 2026

Copy link
Copy Markdown
Collaborator

The network participant list (Settings → LISH network → Participants) kept showing peers that went offline long ago, and the backend kept re-dialing them forever. This makes those entries expire and stops the churn.

  • discovered peers with no live connection expire from the list 30 minutes after their last update, scoped per network (a peer still connected via another network no longer lingers under one it left)
  • peers that stay unreachable across repeated re-dials, or have no reachable address, are evicted from the peer store and bootstrap/gossipsub state, then briefly quarantined so gossip can't instantly re-add them
  • configured bootstrap peers are never evicted — a broken entry keeps its status row so it stays fixable
  • an identity mismatch on one address of an otherwise-connected peer now trims just that address instead of dropping the whole peer; discovered rows are capped per network and only dial-verified addresses enter the peer store
  • no frontend changes

lukyrys added 23 commits July 23, 2026 08:23
@lukyrys
lukyrys marked this pull request as ready for review July 27, 2026 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant