ofrnxmr is addressing reviews on peerlist housekeeping PRs. #11705 incorporates most of #11527 (except the whitelist size increase); #11706 covers a side-issue that is worsened by a larger whitelist (dead nodes accumulating and forcing selection from the gray list, contrary to the intended white-first behavior). Discussion turned to ap4sh’s #11764 on updating last_seen: rucknium noted that updating on locally initiated actions seems acceptable while updating on remote-initiated actions has been deliberately avoided. vtnerd initially viewed the PR as sane (tracking successful outbound connections, including ping-backs) but later withdrew support after confirming it updates last_seen on remote-initiated actions. Related/conflicting pingback behavior to the gray list was also noted.
ofrnxmr: me: addressing some reviews on some peerlist housekeeping prs
rucknium: thomasbuilds:matrix.org, ofrnxmr:monero.social , and I had some discussion on

GitHub
p2p: increase white_list size and change connection selection algorithm by Rucknium · Pull Request #11527 · monero-project/monero
TL;DR: An adversary with 1,000 or more IP addresses under its control can pack its IP addresses into honest nodes' peer lists and successfully ...
ofrnxmr: 11705 includes most of 11527 (except for the whitelist increase). 11706 includes side-issue that is worsened if we increase the whitelist size
rucknium: I noticed

GitHub
p2p: refresh white peer timestamp after successful ping-back by Ap4sh · Pull Request #11764 · monero-project/monero
a successful inbound ping-back creates a peer entry with a fresh last_seen, but append_with_peer_white() keeps the old timestamp when that address ...
by ap4sh:matrix.org . Is that proposal to update the last_seen when my node initiates an action, or when another node initiates the action?
ofrnxmr: (dead nodes accumulating in a large / unpruned whitelist causes you to select from gray, which goes against the "white first" intended behavior)
rucknium: The former seems ok, but the latter has been deliberately avoided by the code.
ofrnxmr: I saw samy pr but havent had a chance to look at it yet
vtnerd: the samy pr seems sane, as last_seen is tracking last successful outbound to that node
vtnerd: I believe its only used on full handshakes currently, but I could be wrong
vtnerd: using it in that ping-back scenario seems sane
vtnerd: it’ll be a merge issue with ssl, but I’ll figure that out
ofrnxmr: Perhaps related

GitHub
p2p: bucket the gray list by source and send ping-backs to it · monero-project/monero@5af802f
Inbound peers that answered a ping-back went straight into the white
list, and peer lists from any connection filled one gray list that
evicted its...
ofrnxmr: related/conflicting. my work sends pingbacks to gray
rucknium: More on this topic?
vtnerd: I don’t see why it would sent it to gray, but I may need to look at that pr further
rucknium: We can end the meeting here. Thanks everyone.
ofrnxmr: thanks
vtnerd: Yes indeed I withdraw my support for samy pr
vtnerd: This was never answered, but that pr changes last seen after remote initiated action, which was likely intentionally avoided. > I noticed

GitHub
p2p: refresh white peer timestamp after successful ping-back by Ap4sh · Pull Request #11764 · monero-project/monero
a successful inbound ping-back creates a peer entry with a fresh last_seen, but append_with_peer_white() keeps the old timestamp when that address ...
by ap4sh:matrix.org . Is that proposal to update the last_seen when my node initiates an action, or when another node initiates the action?
View quoted note →