🎨 Improve init sync stability

This commit is contained in:
Daniel
2023-07-18 01:08:18 +08:00
parent 317ecdb618
commit 4e69f9596c
2 changed files with 7 additions and 3 deletions

View File

@@ -99,7 +99,7 @@ func InitDatabase(forceRebuild bool) (err error) {
}
}
if gulu.File.IsExist(util.BlockTreePath) {
os.RemoveAll(util.BlockTreePath)
treenode.InitBlockTree(true)
}
initDBConnection()