aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.h
diff options
context:
space:
mode:
authorIvan Metlushko <metlushko@gmail.com>2020-10-12 17:10:10 +0700
committerIvan Metlushko <metlushko@gmail.com>2020-10-13 18:42:59 +0700
commit135afa749c6e835ea33b8678cdb35da9640eede8 (patch)
tree04a0d10cb618dd2365ae5cb1c4404234b70f4c2f /src/wallet/walletdb.h
parentaf22322dab1a2277483b2512723491a5fad1a606 (diff)
downloadbitcoin-135afa749c6e835ea33b8678cdb35da9640eede8.tar.xz
wallet: remove db mode string
We never need to open database in read-only mode as it's controlled separately for every batch. Also we can safely create database if it doesn't exist already because require_existing option is verified in MakeDatabase before creating a new WalletDatabase instance.
Diffstat (limited to 'src/wallet/walletdb.h')
-rw-r--r--src/wallet/walletdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/walletdb.h b/src/wallet/walletdb.h
index eda810ed8a..7f1b86e458 100644
--- a/src/wallet/walletdb.h
+++ b/src/wallet/walletdb.h
@@ -204,8 +204,8 @@ private:
}
public:
- explicit WalletBatch(WalletDatabase& database, const char* pszMode = "r+", bool _fFlushOnClose = true) :
- m_batch(database.MakeBatch(pszMode, _fFlushOnClose)),
+ explicit WalletBatch(WalletDatabase &database, bool _fFlushOnClose = true) :
+ m_batch(database.MakeBatch(_fFlushOnClose)),
m_database(database)
{
}