-
Notifications
You must be signed in to change notification settings - Fork 283
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make floodPublish
under CLI flag control
#8559
Comments
@Nashatyrev do you have any opinion about this? |
Yes, I totally support adding this flag. |
@KatyaRyazantseva - basically all of the p2p flags live together in NetworkConfig, and that would get plumbed through so that we can pass it in at Generally boolean flags follow a common pattern in picocli, called *-enabled by default, having a similar to Then we just need to find the path to pass it into that factory... |
I would also add that this option when disabled would improve validator privacy. |
Thinking about the risks: @Nashatyrev A more clever way would be to start sending the next peer at some point by allowing overlapping. This can become complicated :) |
@tbenr Not really sure what you mean exactly
Sending is performed in parallel, so having a slow receiver would not affect other receivers. If you e.g. have 100Mb/s bandwidth and sending 1Mb message then if calculate roughly in the first case the first message would be delivered to any other peer in 800ms, in the second case - in 15 seconds
You are probably refer to what I call 'staggered send'. It indeed might be more effective, but you would need estimation on your outbound bandwidth and all peers' inbound bandwidth at the moment of sending. So yeah, it looks pretty complicated |
Oh I definitely confused the two. You are right, thanks for clarifying! |
What could be the description of the flag for users? |
Hi @KatyaRyazantseva - sorry this fell through the cracks, remember theres always teku-contribs if ppl are not answering... We could use a placeholder to unblock, or just take a stab, ill do the latter... |
After some discussions with LH guys, seems like turning off floodPublish may help especially in case of low upload bandwidth.
The reason is that it seems to improve dissemination latency if the full message is received earlier by one of the peer of the mesh (rather than start sending the message in parallel to all peers of the mesh). This could help homestakers on low bandwidth, when publishing block and blobs (locally built)
the parameter could be named
--p2p-flood-publish-enabled
, defaulttrue
context:
.floodPublish(true)
inaddGossipParamsMiscValues
The text was updated successfully, but these errors were encountered: