Merge pull request #713 from yyforyongyu/fix-walletdb-param

btcwallet: add missing noFreelistSync in spv mode and temp wallet
This commit is contained in:
Olaoluwa Osuntokun 2020-09-15 17:13:06 -07:00 committed by GitHub
commit 9d8d984207
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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
}