Cargill / splinter

A privacy-focused distributed platform - start splintering your network into circuits!
Apache License 2.0
106 stars 37 forks source link

Backport 0-6: Check the LMDB files exist before upgrading scabbard state #2053

Closed agunde406 closed 2 years ago

agunde406 commented 2 years ago

Without this check, if splinter is use postgres state, the upgrade command created new lmdb files that would break a restart of splinter.

This commit adds a check to the upgrade command so it will return OK without any changes if no LMDB files exists.

This makes the command able to be run on postgres only state for easier scripting.

Signed-off-by: Andrea Gunderson agunde@bitwise.io