Merge pull request #713 from yyforyongyu/fix-walletdb-param
btcwallet: add missing noFreelistSync in spv mode and temp wallet
This commit is contained in:
commit
9d8d984207
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)
|
netDir := networkDir(cfg.AppDataDir.Value, activeNet.Params)
|
||||||
spvdb, err = walletdb.Create("bdb",
|
spvdb, err = walletdb.Create("bdb",
|
||||||
filepath.Join(netDir, "neutrino.db"))
|
filepath.Join(netDir, "neutrino.db"), true)
|
||||||
defer spvdb.Close()
|
defer spvdb.Close()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("Unable to create Neutrino DB: %s", err)
|
log.Errorf("Unable to create Neutrino DB: %s", err)
|
||||||
|
|
|
@ -219,7 +219,7 @@ func createSimulationWallet(cfg *config) error {
|
||||||
fmt.Println("Creating the wallet...")
|
fmt.Println("Creating the wallet...")
|
||||||
|
|
||||||
// Create the wallet database backed by bolt db.
|
// Create the wallet database backed by bolt db.
|
||||||
db, err := walletdb.Create("bdb", dbPath)
|
db, err := walletdb.Create("bdb", dbPath, true)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue