From 533a70e04d68c28a102f8cd6d9b0a31fdbfef030 Mon Sep 17 00:00:00 2001 From: ohcee <46406370+ohcee@users.noreply.github.com> Date: Sun, 7 Jul 2024 12:30:59 -0700 Subject: [PATCH] flush size 10 GB --- src/txdb.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/txdb.cpp b/src/txdb.cpp index b51debe4a..969594fae 100644 --- a/src/txdb.cpp +++ b/src/txdb.cpp @@ -535,7 +535,7 @@ CZerocoinDB::CZerocoinDB(size_t nCacheSize, bool fMemory, bool fWipe) : CDBWrapp bool CZerocoinDB::WriteCoinMintBatch(const std::map& mintInfo) { LogPrint(BCLog::ZEROCOINDB, "Starting WriteCoinMintBatch with %u mints\n", (unsigned int)mintInfo.size()); - const size_t FLUSH_SIZE = 7516192768; // Set flush size to 7 GB + const size_t FLUSH_SIZE = 10737418240; // Set flush size to 10 GB std::vector, uint256>> cache; size_t currentCacheSize = 0; // Track current cache size in bytes @@ -606,7 +606,7 @@ bool CZerocoinDB::EraseCoinMint(const CBigNum& bnPubcoin) bool CZerocoinDB::WriteCoinSpendBatch(const std::map& spendInfo) { LogPrint(BCLog::ZEROCOINDB, "Starting WriteCoinSpendBatch with %u spends\n", (unsigned int)spendInfo.size()); - const size_t FLUSH_SIZE = 7516192768; // Set flush size to 7 GB + const size_t FLUSH_SIZE = 10737418240; // Set flush size to 10 GB std::vector, uint256>> cache; size_t currentCacheSize = 0; @@ -685,7 +685,7 @@ bool CZerocoinDB::EraseCoinSpend(const CBigNum& bnSerial) bool CZerocoinDB::WritePubcoinSpendBatch(std::map& mapPubcoinSpends, const uint256& hashBlock) { LogPrint(BCLog::ZEROCOINDB, "Starting WritePubcoinSpendBatch with %u spends\n", (unsigned int)mapPubcoinSpends.size()); - const size_t FLUSH_SIZE = 7516192768; // Set flush size to 7 GB + const size_t FLUSH_SIZE = 10737418240; // Set flush size to 10 GB std::vector, std::pair>> cache; size_t currentCacheSize = 0;