• Joshua Gutow's avatar
    op-batcher: Properly drain state on L2 reorgs · 66f9e8e8
    Joshua Gutow authored
    When a L2 reorg occurs the batcher should close out the pending channel
    and submit everything that it has before clearing the channel builder.
    The reason for this is that even though it may be submitting incorrect
    data it should not leave dangling channels. After the pending state is
    drained it can begin tracking the new L2 chain.
    66f9e8e8
driver.go 13.5 KB