Remove unused DEFAULT_BATCHSCANNERMEMLIMIT constant.

This commit is contained in:
Kris Nuttycombe 2023-01-26 12:33:55 -07:00
parent aab58d308f
commit 887b2688df
2 changed files with 4 additions and 5 deletions

View File

@ -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.

View File

@ -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;