wallet: bdb: move TxnBegin to cpp file since it uses a bdb function

This commit is contained in:
Cory Fields
2023-07-06 18:23:23 +00:00
parent 43369f3706
commit 4216f69250
2 changed files with 10 additions and 8 deletions

View File

@@ -462,6 +462,15 @@ void BerkeleyEnvironment::ReloadDbEnv()
Open(open_err);
}
DbTxn* BerkeleyEnvironment::TxnBegin(int flags)
{
DbTxn* ptxn = nullptr;
int ret = dbenv->txn_begin(nullptr, &ptxn, flags);
if (!ptxn || ret != 0)
return nullptr;
return ptxn;
}
bool BerkeleyDatabase::Rewrite(const char* pszSkip)
{
while (true) {