Skip to content

p2p: do not send last_seen timestamp to peers#627

Open
dimmarvel wants to merge 1 commit intohyle-team:developfrom
dimmarvel:fix_peerlist
Open

p2p: do not send last_seen timestamp to peers#627
dimmarvel wants to merge 1 commit intohyle-team:developfrom
dimmarvel:fix_peerlist

Conversation

@dimmarvel
Copy link
Collaborator

Fix made with help Monero 28a7d31

This can be used for fingerprinting and working out the
network topology.

Instead of sending the first N (which are sorted by last
seen time), we sent a random subset of the first N+N/5,
which ensures reasonably recent peers are used, while
preventing repeated calls from deducing new entries are
peers the target node just connected to.

The list is also randomly shuffled so the original set of
timestamps cannot be approximated.

@dimmarvel dimmarvel self-assigned this Feb 12, 2026
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