btcwallet: add missing noFreelistSync option in wallet.Create
This commit is contained in:
parent
ca24ed58cf
commit
8e2b9db6f2
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue