0xPolygonHermez / zkevm-node

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

Add a paramater to synchronizer to choose if sync from L2 or not #3640

Closed joanestebanr closed 4 months ago

joanestebanr commented 4 months ago

Rationale

The synchronizer usually sync from L1 and when reach the last sequence batch start syncing from L2 the trusted State. In some case we want to avoid to sync the trusted state

Implementation

Add a configuration param to choose the behaviour

    [Synchronizer.L2Synchronization]
        Enable = true