Reduce cache size. (#4268)

pull/4269/head
Konstantin 2 years ago committed by GitHub
parent 2b897bc26d
commit 7c1c43ecbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      core/blockchain_impl.go

@ -93,10 +93,10 @@ var (
) )
const ( const (
bodyCacheLimit = 2048 bodyCacheLimit = 128
blockCacheLimit = 2048 blockCacheLimit = 128
receiptsCacheLimit = 32 receiptsCacheLimit = 32
maxFutureBlocks = 256 maxFutureBlocks = 16
maxTimeFutureBlocks = 30 maxTimeFutureBlocks = 30
badBlockLimit = 10 badBlockLimit = 10
triesInMemory = 128 triesInMemory = 128
@ -105,13 +105,13 @@ const (
commitsCacheLimit = 10 commitsCacheLimit = 10
epochCacheLimit = 10 epochCacheLimit = 10
randomnessCacheLimit = 10 randomnessCacheLimit = 10
validatorCacheLimit = 1024 validatorCacheLimit = 128
validatorStatsCacheLimit = 1024 validatorStatsCacheLimit = 128
validatorListCacheLimit = 10 validatorListCacheLimit = 10
validatorListByDelegatorCacheLimit = 1024 validatorListByDelegatorCacheLimit = 128
pendingCrossLinksCacheLimit = 2 pendingCrossLinksCacheLimit = 2
blockAccumulatorCacheLimit = 256 blockAccumulatorCacheLimit = 64
maxPendingSlashes = 512 maxPendingSlashes = 256
// BlockChainVersion ensures that an incompatible database forces a resync from scratch. // BlockChainVersion ensures that an incompatible database forces a resync from scratch.
BlockChainVersion = 3 BlockChainVersion = 3
pendingCLCacheKey = "pendingCLs" pendingCLCacheKey = "pendingCLs"

Loading…
Cancel
Save