1. 08 Nov, 2022 5 commits
  2. 07 Nov, 2022 2 commits
    • Joshua Gutow's avatar
      op-batcher: Rewrite ChannelManager (#3859) · 4abae618
      Joshua Gutow authored
      * op-batcher: Rewrite ChannelManager
      
      The channel manager is now responsible for tracking in flight frames
      and properly handling different error conditions.
      
      * op-batcher: String() & TerminalString() for txID
      
      * op-batcher: Remove channelPending bool
      
      * op-batcher: Fix wraparound bug in timeout check
      
      * op-batcher: Comments + Logging
      
      * op-batcher: Properly exit loop
      4abae618
    • Joshua Gutow's avatar
      op-node: Prefer following seq drift instead of conf depth (#3861) · 9940c8cd
      Joshua Gutow authored
      * op-node: Prefer following seq drift instead of conf depth
      
      We found a log on a testnet where a batch was rejected because it's
      timestamp was greater than the origin timestamp + sequencer drift.
      I looked into origin selection and determined we produce empty blocks
      if the block time is ahead of the origin + seq drift; however if there
      is a next origin, it is not enough to produce an empty block, we must
      change the origin.
      
      I hypothesize that this occurred because the L1 head that the node was
      looking at was lagging. That would cause the node to keep using an
      old origin even if the timestamp was past the max drift. I added
      a unit test which shows this case & would fail without this fix
      being applied.
      
      * op-node: Don't immediately attempt to advance origin
      
      If the current origin is past the sequencer drift, it needs to
      ignore the conf depth staying, but does still need to check next
      L2 block time against the next origin time.
      
      I've also added a test for this case.
      9940c8cd
  3. 05 Nov, 2022 21 commits
  4. 04 Nov, 2022 12 commits