diff --git a/src/validationinterface.cpp b/src/validationinterface.cpp index 1240e0d7c..21de7514c 100644 --- a/src/validationinterface.cpp +++ b/src/validationinterface.cpp @@ -118,8 +118,6 @@ struct CachedBlockData { void ThreadNotifyWallets(CBlockIndex *pindexLastTip) { - size_t nBatchScannerMemLimit = DEFAULT_BATCHSCANNERMEMLIMIT * 1024 * 1024; - // If pindexLastTip == nullptr, the wallet is at genesis. // However, the genesis block is not loaded synchronously. // We need to wait for ThreadImport to finish. diff --git a/src/validationinterface.h b/src/validationinterface.h index d4177e9bc..0d6f395c0 100644 --- a/src/validationinterface.h +++ b/src/validationinterface.h @@ -15,9 +15,10 @@ #include "miner.h" #include "zcash/IncrementalMerkleTree.hpp" -/** Default limit on batch scanner memory usage in MiB. */ -static const size_t DEFAULT_BATCHSCANNERMEMLIMIT = 100; -/** Limit on batch scanner memory usage in MiB. */ +/** + * Limit on the maximum number of blocks that will be staged for + * scanning before an interrupt will be handled. + */ static const size_t WALLET_NOTIFY_MAX_BLOCKS = 1000; class CBlock;