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

Validate signer to be in validator set (BFT-384) #45

Merged
merged 5 commits into from
Dec 5, 2023

Conversation

moshababo
Copy link
Contributor

@moshababo moshababo commented Dec 1, 2023

Add validation for messages sent by replica to have their signer be in the validator set.

  • A new error type variant has been added to the 2 message types.
  • Validation has been introduced at the beginning of the processing of each message.
  • 2 tests have been added:
    • replica_prepare_non_validator_signer
    • replica_commit_non_validator_signer

# Conflicts:
#	node/actors/bft/src/leader/replica_commit.rs
#	node/actors/bft/src/leader/replica_prepare.rs
#	node/actors/bft/src/leader/tests.rs
@moshababo moshababo requested a review from pompon0 December 4, 2023 17:43
@moshababo moshababo changed the title Add signer in validator set check (BFT-384) Validate signer to be in validator set (BFT-384) Dec 5, 2023
@moshababo moshababo merged commit 9644bf1 into main Dec 5, 2023
4 checks passed
@moshababo moshababo deleted the signer_in_val_set branch December 5, 2023 12:20
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.

3 participants