zkBob / zeropool-relayer

2 stars 4 forks source link

Ways to improve relayer sync on startup #75

Open r0wdy1 opened 2 years ago

r0wdy1 commented 2 years ago
  1. Create a regular job to backup the relayer's database files for

The job copies all the files to a newly created folder in a specified path. Only N last backups are needed, so the oldest one is deleted whenever there is already N backups stored.

  1. The relayer startup code must be modified so that external backup files could be used as a starting point. The path must be passed as an argument
ulyanas commented 2 years ago

1) First step would be to test reorgs and similar cases - @r0wdy1