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 }