mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 19:50:36 +00:00
2e29ff33e1
Currently PropagateNewBlockHashes and BroadcastNewBlock selects a subset of all sentries by taking a `Sqrt(len(sentries))`, and then for each sentry SendMessageToRandomPeers selects a subset of its peers by taking `Sqrt(len(peerInfos))`. This behaviour limits the broadcast scope with a lot of peers, e.g. 100 becomes 10, but is not great with very few peers, or if the message is very important to broadcast to everyone, which is the case of bor validator/proposer nodes. * send to all sentries in both BroadcastNewBlock and PropagateNewBlockHashes * remove peerCountConstrained sqrt logic in SendMessageToRandomPeers * add maxPeers provider func as a parameter to MultiClient * default it to 10 for eth and 0 (unlimited) for bor validators --------- Co-authored-by: Mark Holt <mark@distributed.vision> |
||
---|---|---|
.. | ||
aura | ||
bor | ||
clique | ||
ethash | ||
merge | ||
misc | ||
chain_reader.go | ||
consensus.go | ||
errors.go | ||
result.go |