Skip to content

Commit eab9b26

Browse files
committed
Merge remote-tracking branch 'origin/main' into feat/multi-server-devnet-skill
2 parents f7097b7 + 0ec7ecc commit eab9b26

2 files changed

Lines changed: 13 additions & 6 deletions

File tree

crates/blockchain/src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ pub struct BlockChainConfig {
6868
pub proposer_config: ProposerConfig,
6969
}
7070

71-
/// Milliseconds per interval (800ms ticks).
72-
pub const MILLISECONDS_PER_INTERVAL: u64 = 800;
73-
/// Number of intervals per slot (5 intervals of 800ms = 4 seconds).
74-
pub const INTERVALS_PER_SLOT: u64 = 5;
75-
/// Milliseconds in a slot (derived from interval duration and count).
76-
pub const MILLISECONDS_PER_SLOT: u64 = MILLISECONDS_PER_INTERVAL * INTERVALS_PER_SLOT;
71+
// The interval grid lives in `ethlambda-types` because `ethlambda-storage` also
72+
// derives slots from `store.time()` and must not carry a second copy of a
73+
// consensus-critical constant.
7774
pub use ethlambda_types::block::MAX_ATTESTATIONS_DATA;
75+
pub use ethlambda_types::constants::{
76+
INTERVALS_PER_SLOT, MILLISECONDS_PER_INTERVAL, MILLISECONDS_PER_SLOT,
77+
};
7878
pub use sync_status::SyncStatusController;
7979
/// Future-slot tolerance for gossip attestations, expressed in intervals.
8080
///

crates/common/types/src/constants.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@
88
/// eventually be derived from the fork version and genesis validators root.
99
// TODO: derive dynamically once the spec defines fork identification.
1010
pub const FORK_DIGEST: &str = "12345678";
11+
12+
/// Milliseconds per interval (800ms ticks).
13+
pub const MILLISECONDS_PER_INTERVAL: u64 = 800;
14+
/// Number of intervals per slot (5 intervals of 800ms = 4 seconds).
15+
pub const INTERVALS_PER_SLOT: u64 = 5;
16+
/// Milliseconds in a slot (derived from interval duration and count).
17+
pub const MILLISECONDS_PER_SLOT: u64 = MILLISECONDS_PER_INTERVAL * INTERVALS_PER_SLOT;

0 commit comments

Comments
 (0)