Remove unused DEFAULT_BATCHSCANNERMEMLIMIT constant.
This commit is contained in:
parent
aab58d308f
commit
887b2688df
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue