shutter-network / rolling-shutter

Rolling Shutter is an MEV protection system to be plugged into rollups.
https://twitter.com/project_shutter/
26 stars 7 forks source link

Handle reorgs #448

Open jannikluhn opened 1 month ago

jannikluhn commented 1 month ago

Once #447 is done, the gnosis chain implementation will be notified of reorgs. Whenever a block is reorged, we should also undo changes to the database we made due to this block. Most database tables that store execution chain events already store information about the block they're contained in (see e.g. here), so finding them should be easy.

We also have to think about what effects a reorg has on the tx pointer and how we should react to it.