mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
Add mainnet configs (#8344)
#8135 mainnet config PR: https://github.com/eth-clients/mainnet/pull/11 Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu> Co-Authored-By: Michael Sproul <michael@sigmaprime.io> Co-Authored-By: Tan Chee Keong <tanck@sigmaprime.io>
This commit is contained in:
@@ -850,6 +850,22 @@ mod test {
|
||||
.build();
|
||||
harness.advance_slot();
|
||||
|
||||
// Check block generator timestamp conversion sanity.
|
||||
{
|
||||
let exec_block_generator = harness.execution_block_generator();
|
||||
assert_eq!(
|
||||
exec_block_generator
|
||||
.timestamp_to_slot_post_capella(exec_block_generator.osaka_time.unwrap()),
|
||||
0
|
||||
);
|
||||
assert_eq!(
|
||||
exec_block_generator.timestamp_to_slot_post_capella(
|
||||
exec_block_generator.osaka_time.unwrap() + harness.spec.seconds_per_slot
|
||||
),
|
||||
1
|
||||
);
|
||||
}
|
||||
|
||||
let verify_fn = |column_sidecar: DataColumnSidecar<E>| {
|
||||
GossipVerifiedDataColumn::<_>::new_for_block_publishing(
|
||||
column_sidecar.into(),
|
||||
|
||||
Reference in New Issue
Block a user