do not fail if database is missing
This commit is contained in:
parent
df539e5d01
commit
bc72d2f1c4
1 changed files with 3 additions and 0 deletions
|
@ -248,6 +248,9 @@ func CleanupLbrynet() error {
|
||||||
|
|
||||||
db, err := os.Stat(lbryumDir + "/blockchain.db")
|
db, err := os.Stat(lbryumDir + "/blockchain.db")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
if os.IsNotExist(err) {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
return errors.Err(err)
|
return errors.Err(err)
|
||||||
}
|
}
|
||||||
dbSizeLimit := int64(2 * 1024 * 1024 * 1024)
|
dbSizeLimit := int64(2 * 1024 * 1024 * 1024)
|
||||||
|
|
Loading…
Reference in a new issue