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

fix(snapshot): get seen eons / epochs from db instead of map #406

Closed ezdac closed 9 months ago

ezdac commented 10 months ago

Before we kept an in-memory map of seen eons and epoch, in order to avoid firing events multiple times. If the node would crash, this information would be lost - although this has no negative effect on database records.

Now, we simply try to insert incoming objects into our db, and will react on wether ON CONFLICT DO NOTHING happened during the insert.

We also now insert received decryption keys into the DB.