mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-22 04:38:55 +02:00
CWalletDB: Store the update counter per wallet
This commit is contained in:
@@ -434,6 +434,16 @@ void CDB::Flush()
|
||||
env->dbenv->txn_checkpoint(nMinutes ? GetArg("-dblogsize", DEFAULT_WALLET_DBLOGSIZE) * 1024 : 0, nMinutes, 0);
|
||||
}
|
||||
|
||||
void CWalletDBWrapper::IncrementUpdateCounter()
|
||||
{
|
||||
++nUpdateCounter;
|
||||
}
|
||||
|
||||
unsigned int CWalletDBWrapper::GetUpdateCounter()
|
||||
{
|
||||
return nUpdateCounter.load();
|
||||
}
|
||||
|
||||
void CDB::Close()
|
||||
{
|
||||
if (!pdb)
|
||||
|
||||
Reference in New Issue
Block a user