erigon-pulse/eth
battlmonstr 2e29ff33e1
bor: BroadcastNewBlock to all peers from validator nodes (#8030)
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>
2023-08-23 14:28:39 +02:00
..
calltracer Convert *vm.EVM to vm.VMInterface in Tracers (#6590) 2023-01-16 22:28:50 +00:00
ethconfig Replaced old version of Engine API with newer version (#7972) 2023-08-05 23:33:10 +02:00
ethconsensusconfig Snapshots of Bor events (#7901) 2023-08-18 17:10:35 +01:00
ethutils reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
filters reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
gasprice Replaced old version of Engine API with newer version (#7972) 2023-08-05 23:33:10 +02:00
integrity go 1.19 atomics (#7164) 2023-03-23 05:11:28 +00:00
protocols/eth Replaced old version of Engine API with newer version (#7972) 2023-08-05 23:33:10 +02:00
stagedsync Fix panic due to Borevents snapshots changes (#8042) 2023-08-20 10:42:09 +01:00
tracers Update execution-spec-tests to v1.0.1 (#7980) 2023-08-08 15:01:35 +02:00
api_backend.go reference hash, address, and chain config from lib (#6536) 2023-01-13 18:12:18 +00:00
api.go Embed rpcdaemon: prepared direct clients (#3492) 2022-02-12 19:47:19 +07:00
backend.go bor: BroadcastNewBlock to all peers from validator nodes (#8030) 2023-08-23 14:28:39 +02:00
bloombits.go remove database field from Ethereum object (#1750) 2021-04-19 14:56:44 +07:00
discovery.go rename (#1978) 2021-05-20 19:25:53 +01:00