Skip to content

Commit

Permalink
fix: add check of plato hardfork in verify_vote_attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 committed Jul 10, 2024
1 parent 5c31cac commit 5a7bb53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/bsc/evm/src/pre_execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ where
header: &Header,
parent: &Header,
) -> Result<(), BlockExecutionError> {
if !self.parlia().chain_spec().is_plato_active_at_block(header.number) {
return Ok(());
}

let attestation =
self.parlia().get_vote_attestation_from_header(header).map_err(|err| {
BscBlockExecutionError::ParliaConsensusInnerError { error: err.into() }
Expand Down

0 comments on commit 5a7bb53

Please sign in to comment.