mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-18 07:50:38 +02:00
wallet: bdb: drop default parameter
This commit is contained in:
parent
c325f0fbae
commit
43369f3706
@ -742,7 +742,7 @@ bool BerkeleyBatch::TxnBegin()
|
|||||||
{
|
{
|
||||||
if (!pdb || activeTxn)
|
if (!pdb || activeTxn)
|
||||||
return false;
|
return false;
|
||||||
DbTxn* ptxn = env->TxnBegin();
|
DbTxn* ptxn = env->TxnBegin(DB_TXN_WRITE_NOSYNC);
|
||||||
if (!ptxn)
|
if (!ptxn)
|
||||||
return false;
|
return false;
|
||||||
activeTxn = ptxn;
|
activeTxn = ptxn;
|
||||||
|
@ -67,7 +67,7 @@ public:
|
|||||||
void CloseDb(const fs::path& filename);
|
void CloseDb(const fs::path& filename);
|
||||||
void ReloadDbEnv();
|
void ReloadDbEnv();
|
||||||
|
|
||||||
DbTxn* TxnBegin(int flags = DB_TXN_WRITE_NOSYNC)
|
DbTxn* TxnBegin(int flags)
|
||||||
{
|
{
|
||||||
DbTxn* ptxn = nullptr;
|
DbTxn* ptxn = nullptr;
|
||||||
int ret = dbenv->txn_begin(nullptr, &ptxn, flags);
|
int ret = dbenv->txn_begin(nullptr, &ptxn, flags);
|
||||||
|
@ -175,7 +175,7 @@ bool RecoverDatabaseFile(const ArgsManager& args, const fs::path& file_path, bil
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
DbTxn* ptxn = env->TxnBegin();
|
DbTxn* ptxn = env->TxnBegin(DB_TXN_WRITE_NOSYNC);
|
||||||
CWallet dummyWallet(nullptr, "", std::make_unique<DummyDatabase>());
|
CWallet dummyWallet(nullptr, "", std::make_unique<DummyDatabase>());
|
||||||
for (KeyValPair& row : salvagedData)
|
for (KeyValPair& row : salvagedData)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user