• Joshua Gutow's avatar
    Alt-DA: Refactor DAState and DAMgr to Separate Commitment and Challenge Tracking (#10618) · 81c7aa03
    Joshua Gutow authored
    * plasma: Split commitments & challenges
    
    This splits the current two queues into four queues. Two for commitments
    and two for challenges. Challenges are commitments are split because they
    are different things. Each has two physical queues to differentiate between
    items which have not expired and items which have expired but not finalized.
    
    This also splits the commitment origin from the challenge origin because the
    challenge origin can advance independently of the commitment origin.
    
    * Cleanup Refactor ; Fix Tests
    
    Reading over the refactor and understanding it for myself,
    I made some organizational edits, and fixed an issue in the E2E tests.
    
    * remove commented assert
    
    * Update op-plasma/damgr.go
    Co-authored-by: default avatarAdrian Sutton <adrian@oplabs.co>
    
    * add warn log for DA Server Not Found errors
    
    ---------
    Co-authored-by: default avataraxelKingsley <axel.kingsley@gmail.com>
    Co-authored-by: default avatarAdrian Sutton <adrian@oplabs.co>
    81c7aa03
damgr.go 18.7 KB