Skip to content

Commit

Permalink
fix to use correct fork version: ethereum/consensus-specs#3284
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Oct 27, 2024
1 parent 21f13b6 commit 7ed0e97
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions crates/light-client-verifier/src/consensus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,8 @@ pub fn verify_sync_committee_attestation<
.map(|t| t.1.clone().try_into().unwrap())
.collect();

let fork_version = compute_fork_version(
ctx,
compute_epoch_at_slot(ctx, consensus_update.signature_slot()),
)?;
let fork_version_slot = consensus_update.signature_slot().max(1.into()) - 1;
let fork_version = compute_fork_version(ctx, compute_epoch_at_slot(ctx, fork_version_slot))?;
let domain = compute_domain(
ctx,
DOMAIN_SYNC_COMMITTEE,
Expand Down

0 comments on commit 7ed0e97

Please sign in to comment.