btcwallet: add missing noFreelistSync option in wallet.Create

This commit is contained in:
yyforyongyu 2020-08-11 20:57:48 +08:00
parent ca24ed58cf
commit 8e2b9db6f2
No known key found for this signature in database
GPG key ID: 9BCD95C4FF296868
2 changed files with 2 additions and 2 deletions

View file

@ -161,7 +161,7 @@ func rpcClientConnectLoop(legacyRPCServer *legacyrpc.Server, loader *wallet.Load
)
netDir := networkDir(cfg.AppDataDir.Value, activeNet.Params)
spvdb, err = walletdb.Create("bdb",
filepath.Join(netDir, "neutrino.db"))
filepath.Join(netDir, "neutrino.db"), true)
defer spvdb.Close()
if err != nil {
log.Errorf("Unable to create Neutrino DB: %s", err)

View file

@ -219,7 +219,7 @@ func createSimulationWallet(cfg *config) error {
fmt.Println("Creating the wallet...")
// Create the wallet database backed by bolt db.
db, err := walletdb.Create("bdb", dbPath)
db, err := walletdb.Create("bdb", dbPath, true)
if err != nil {
return err
}