• Joshua Gutow's avatar
    op-e2e: Add Large L1 gap blocktime test · f78901da
    Joshua Gutow authored
    TestLargeL1Gaps tests the case that there is a gap between two L1 blocks
    which is larger than the sequencer drift.
    This test has the following parameters:
    L1 Block time: 4s. L2 Block time: 2s. Sequencer Drift: 32s
    
    It generates 8 L1 blocks & 16 L2 blocks.
    Then generates an L1 block that has a time delta of 48s.
    It then generates the 24 L2 blocks.
    Then it generates 3 more L1 blocks.
    At this point it can verify that the batches where properly generated.
    Note: It batches submits when possible.
    f78901da
l2_engine.go 6.7 KB