3cb22458f8
Even if there are many connections with stake less than the threshold_stake, prune_random might still reject if both randomly sampled connections have stake bigger than the threshold. A bigger sample-size will make this less likely (at the cost of more computations): https://github.com/solana-labs/solana/blob/2cbd5d6c9/streamer/src/nonblocking/quic.rs#L958-L985 In order to benchmark for an optimal sample-size, the commit generalizes the sample-size and makes it configurable. |
||
---|---|---|
.. | ||
nonblocking | ||
lib.rs | ||
packet.rs | ||
quic.rs | ||
recvmmsg.rs | ||
sendmmsg.rs | ||
socket.rs | ||
streamer.rs | ||
tls_certificates.rs |