Skip to content

Commit

Permalink
set reserve size as zero for OG flow
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 25, 2024
1 parent fa7f420 commit b34b096
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/pex/pex_reactor.go
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,8 @@ func (r *Reactor) ensurePeers() {

func (r *Reactor) collectAddresses(newBias, numToDial, maxAttempts int) map[p2p.ID]*p2p.NetAddress {
toDial := make(map[p2p.ID]*p2p.NetAddress)
reserveSize := cmtmath.MaxInt((numToDial+1)/2, 5)
reserveSize := 0
//reserveSize := cmtmath.MaxInt((numToDial+1)/2, 5)

for i := 0; i < maxAttempts && len(toDial) < numToDial+reserveSize; i++ {
try := r.book.PickAddress(newBias)
Expand Down

0 comments on commit b34b096

Please sign in to comment.