Skip to content

Commit

Permalink
fix: commit signature verification is disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
shumkov committed Jun 19, 2024
1 parent 654b67e commit e5a1114
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,15 +154,20 @@ where
return Ok(validation_result.into());
}

// Verify commit

// In production this will always be true
#[cfg(not(feature = "testing-config"))]
let verify_commit_signature = true;

#[cfg(feature = "testing-config")]
if self
let verify_commit_signature = self
.config
.testing_configs
.block_commit_signature_verification
{
// Verify commit
.block_commit_signature_verification;

if verify_commit_signature
{
let quorum_public_key = last_committed_state
.current_validator_set()?
.threshold_public_key();
Expand Down

0 comments on commit e5a1114

Please sign in to comment.