Skip to content
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

IF: Net plugin takes appropriate actions on invalid QC claims and invalid vote messages #2179

Merged
merged 8 commits into from
Feb 2, 2024

Conversation

linh2931
Copy link
Member

@linh2931 linh2931 commented Feb 1, 2024

When an invalid QC claim or an invalid vote message is received, Net plugin needs to disconnect the peer immediately, keep track of the occurrence, or do nothing, based on the nature of validation failures. This PR classifies validation failures and implements the corresponding actions.

Resolved #1569.

@linh2931 linh2931 linked an issue Feb 1, 2024 that may be closed by this pull request
@@ -92,6 +92,14 @@ namespace eosio::chain {
invalid // invalid message (other reason)
};

enum class vote_status {
succeeded,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no big deal, but I think success is more typical as a status code than succeeded

@ericpassmore
Copy link
Contributor

ericpassmore commented Feb 2, 2024

Note:start
group: IF
category: INTERNALS
summary: Take appropriate action when invalid claim or vote is received.
Note:end

plugins/net_plugin/net_plugin.cpp Outdated Show resolved Hide resolved
plugins/net_plugin/net_plugin.cpp Outdated Show resolved Hide resolved
plugins/net_plugin/net_plugin.cpp Outdated Show resolved Hide resolved
@linh2931 linh2931 requested a review from heifner February 2, 2024 20:25
@linh2931 linh2931 merged commit 61d5d94 into hotstuff_integration Feb 2, 2024
26 checks passed
@linh2931 linh2931 deleted the net_msg_handling branch February 2, 2024 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IF: Verify net messages for validity
4 participants