-
Notifications
You must be signed in to change notification settings - Fork 291
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
P2p validation on main #3189
P2p validation on main #3189
Conversation
Signed-off-by: Leo Chen <leo@harmony.one> [libp2p] validate consensus message at p2p layer Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
* restore the ticker to the original 3 seconds Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
those messages are not errors, they won't be processed by consensus message handlers but till be propagated to p2p network. Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Being a bit conservative, as we have received many message on the network w/o the prefix size. We need further dive deep into those messages. So for now, better be conservative. Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
[validation] increase the validation queue size [validation] increase throttle Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
5859bbd
to
cb91ec5
Compare
Signed-off-by: Leo Chen <leo@harmony.one>
5ed0921
to
2543f58
Compare
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
Signed-off-by: Leo Chen <leo@harmony.one>
The CPU usage on a validator will be doubled as we do pubkey checking on every p2p messages even though validators may ignore them. This is the tradeoff to reduce the propagation of the invalid messages into the network. We can see clearly that the outgoing network traffic is lower than incoming traffic now as invalid ones are filtered out. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! Will the update to protobuf in consensus message cause backward incompatibility?
New PR rebased based on latest main branch. #3212 |
No description provided.