mirror of https://github.com/ethereum/go-ethereum
p2p/simulations: fix unlikely crash in probabilistic connect (#23200)
When the nodeCount is less than 10, it will panic with the out of bound error. How about we just skip this round, when rand1 and rand2 are equal?pull/23304/head
parent
b157bae2c9
commit
8f11d279d2
Loading…
Reference in new issue