set cache size

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2025-12-19 12:32:38 +01:00
parent 76ad66a1f1
commit 6e400cba2a
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

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