mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
set cache size
Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
parent
76ad66a1f1
commit
6e400cba2a
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ const (
|
||||||
blockCacheLimit = 256
|
blockCacheLimit = 256
|
||||||
receiptsCacheLimit = 32
|
receiptsCacheLimit = 32
|
||||||
txLookupCacheLimit = 1024
|
txLookupCacheLimit = 1024
|
||||||
txOnChainCacheLimit = txLookupCacheLimit * 16
|
txOnChainCacheLimit = 32768 // Approx 1MB for 30 minutes of transactions at 18 tps
|
||||||
|
|
||||||
// BlockChainVersion ensures that an incompatible database forces a resync from scratch.
|
// BlockChainVersion ensures that an incompatible database forces a resync from scratch.
|
||||||
//
|
//
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue