aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/walletdb.cpp
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-06-15 14:39:26 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-07-01 12:32:06 -0400
commit91d109156d63ff81cda534bd7bec8369af0027dd (patch)
tree288a93c357ad1dc8267c7597d3166e9d7cb33149 /src/wallet/walletdb.cpp
parent8f1bcf8b7b6e47c05f2e43dd98ec3505b888d8b3 (diff)
downloadbitcoin-91d109156d63ff81cda534bd7bec8369af0027dd.tar.xz
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.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp
index 1c7649de67..0879f2d66e 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;
}
}