config: add sync freelist cli flag

This commit is contained in:
Wilmer Paulino committed 2019-10-04 12:19:42 -04:00
1 parent fa96450db8
commit b63ed5ad56
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -703,7 +703,7 @@ func initNeutrinoBackend(chainDir string) (*neutrino.ChainService, func(), error
}
dbName := filepath.Join(dbPath, "neutrino.db")
db, err := walletdb.Create("bdb", dbName, true)
db, err := walletdb.Create("bdb", dbName, !cfg.SyncFreelist)
if err != nil {
return nil, nil, fmt.Errorf("unable to create neutrino "+
"database: %v", err)