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

Duplicate key error #462

Closed jannikluhn closed 5 days ago

jannikluhn commented 5 days ago

Oftentimes at startup, keypers log the following error:

2024/06/27 13:44:27.809638 ERR [       keyper.go:279] error processing event error="ERROR: duplicate key value violates unique constraint \"keyper_set_pkey\" (SQLSTATE 23505)"

It seems they're trying to insert a keyper set into the db, even though they already did so.

We should double check that the insertion logic is correct (ie they're actually not two different keyper sets) and then either ignore this error or (if we know for a fact that the keyper set has already been inserted) not try to insert it again.

jannikluhn commented 5 days ago

Fixed in #463