From 8e2b9db6f2c5ae210b803aac29c3da1ab4380aaf Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Tue, 11 Aug 2020 20:57:48 +0800 Subject: [PATCH] btcwallet: add missing noFreelistSync option in wallet.Create --- btcwallet.go | 2 +- walletsetup.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/btcwallet.go b/btcwallet.go index 3073357..4a96fef 100644 --- a/btcwallet.go +++ b/btcwallet.go @@ -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) diff --git a/walletsetup.go b/walletsetup.go index 951737d..de63415 100644 --- a/walletsetup.go +++ b/walletsetup.go @@ -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 }