mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 07:28:06 -05:00
* adding what I think could be a fix for find peer * removing uneeded comment * unit tests * linting * gofmt * changelog * Update beacon-chain/p2p/discovery_test.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update changelog/james-prysm_fix-find-peers.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fixing test import * applying suggestions * fixing typo * manu feedback * accidently checked in files * addressing manu's edgecase, old bug * moving tests from service-test.go to subnets_test.go and adding coverage for receiving bad existing node with higher seq * cleanup * updating for clarity * missingPeerCount should increment if we are removing the peer from map * manu's recommendations on defective subnet rollback edge case * rollback introduced too much complication as well as a new bug so we are removing it --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
235 B
235 B
Fixed
- Fixed regression in find peer functions introduced in PR#15471, where nodes with equal sequence numbers were incorrectly skipped and the peer count was incorrectly reduced when replacing nodes with higher sequence numbers.