diff options
| author | Andrew Chow <[email protected]> | 2020-06-15 14:39:26 -0400 |
|---|---|---|
| committer | Andrew Chow <[email protected]> | 2020-07-01 12:32:06 -0400 |
| commit | 91d109156d63ff81cda534bd7bec8369af0027dd (patch) | |
| tree | 288a93c357ad1dc8267c7597d3166e9d7cb33149 /src/wallet/walletdb.cpp | |
| parent | walletdb: Combine VerifyDatabaseFile and VerifyEnvironment (diff) | |
| download | discoin-91d109156d63ff81cda534bd7bec8369af0027dd.tar.xz discoin-91d109156d63ff81cda534bd7bec8369af0027dd.zip | |
walletdb: Move PeriodicFlush into WalletDatabase
Make PeriodicFlush a non-static member of WalletDatabase instead of
WalletBatch.
Diffstat (limited to 'src/wallet/walletdb.cpp')
| -rw-r--r-- | src/wallet/walletdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index 1c7649de6..0879f2d66 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -964,7 +964,7 @@ void MaybeCompactWalletDB() } if (dbh.nLastFlushed != nUpdateCounter && GetTime() - dbh.nLastWalletUpdate >= 2) { - if (BerkeleyBatch::PeriodicFlush(dbh)) { + if (dbh.PeriodicFlush()) { dbh.nLastFlushed = nUpdateCounter; } } |