do not fail if database is missing

This commit is contained in:
Niko Storni 2020-03-25 18:28:42 +01:00
parent df539e5d01
commit bc72d2f1c4

View file

@ -248,6 +248,9 @@ func CleanupLbrynet() error {
db, err := os.Stat(lbryumDir + "/blockchain.db")
if err != nil {
if os.IsNotExist(err) {
return nil
}
return errors.Err(err)
}
dbSizeLimit := int64(2 * 1024 * 1024 * 1024)