-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
testsScope: Changes to the spec testsScope: Changes to the spec tests
Description
After #118 is merged, we should add a test like this (I think for now we don't have enough testing tools so that we need to build new tools as well in the meantime, not exactly sure):
def test_block_with_wrong_slot(
state_transition_test: StateTransitionTestFiller,
) -> None:
"""
Test that blocks with mismatched slot are rejected.
Scenario
--------
Attempt to process a block at slot 1, but the block claims to be
at slot 2.
Expected Behavior
-----------------
Block processing fails with AssertionError: "Block slot mismatch"
Why This Matters
----------------
Ensures temporal consistency:
- Blocks can't lie about their slot
- Prevents time manipulation attacks
- Maintains protocol timing integrity
- Essential for slot-based consensus
"""Metadata
Metadata
Assignees
Labels
testsScope: Changes to the spec testsScope: Changes to the spec tests