Skip to content

Commit

Permalink
add electra support
Browse files Browse the repository at this point in the history
Signed-off-by: Jun Kimura <[email protected]>
  • Loading branch information
bluele committed Nov 13, 2024
1 parent 6c2b3b0 commit 5a18867
Show file tree
Hide file tree
Showing 3 changed files with 422 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/consensus/src/fork.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ pub mod altair;
pub mod bellatrix;
pub mod capella;
pub mod deneb;
pub mod electra;

use crate::beacon::{Epoch, Slot, Version};
use crate::errors::Error;
Expand Down
9 changes: 9 additions & 0 deletions crates/consensus/src/fork/electra.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
use super::{deneb, ForkSpec};

/// https://github.com/ethereum/consensus-specs/blob/a09d0c321550c5411557674a981e2b444a1178c0/specs/electra/light-client/sync-protocol.md#new-constants
pub const ELECTRA_FORK_SPEC: ForkSpec = ForkSpec {
finalized_root_gindex: 169,
current_sync_committee_gindex: 86,
next_sync_committee_gindex: 87,
..deneb::DENEB_FORK_SPEC
};
Loading

0 comments on commit 5a18867

Please sign in to comment.