Skip to content

Commit 18a13d5

Browse files
committed
Increase receipts cache size to 1024
1 parent 84e8417 commit 18a13d5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Nethermind/Nethermind.Blockchain/Receipts/PersistentReceiptStorage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class PersistentReceiptStorage : IReceiptStorage
3535
private readonly IReceiptConfig _receiptConfig;
3636
private readonly bool _legacyHashKey;
3737

38-
private const int CacheSize = 64;
38+
private const int CacheSize = 1024; // TODO: lower?
3939
private readonly LruCache<ValueHash256, TxReceipt[]> _receiptsCache = new(CacheSize, CacheSize, "receipts");
4040

4141
public event EventHandler<BlockReplacementEventArgs> ReceiptsInserted;

0 commit comments

Comments
 (0)