Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
fix: add check of plato hardfork in verify_vote_attestation (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
pythonberg1997 authored Jul 10, 2024
1 parent 5c31cac commit e2846d7
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 e2846d7

Please sign in to comment.