0xPolygonHermez / zkevm-node

Go implementation of a node that operates the Polygon zkEVM Network
Other
531 stars 685 forks source link

synchronizer: during trusted sync avoid process a new batch is the last one is WIP #3583

Closed joanestebanr closed 5 months ago

joanestebanr commented 5 months ago

Rationale

If the synchronizer receive 2 batches from trusted node and both are WIP doesn't make sense to process both because the state can only have 1 batch in WIP state

Implementation

Break synchronization from trusted if a WIP batch is received