0xPolygonHermez / zkevm-node

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

Check reorg refactor #3549

Closed ARR552 closed 5 months ago

ARR552 commented 5 months ago

Instead of checking the reorg in a different query, it should be done in the same query that reads the new data. Old way:

New way:

The initial block should contain the same info that the node synced previously. If not, reorg detected