From 71e97b352d6225fa1f7be58b47c2269e4487dc97 Mon Sep 17 00:00:00 2001 From: itsdevbear Date: Mon, 22 Jan 2024 11:27:35 -0500 Subject: [PATCH] chore(chain): reduce cache sizes to improve memory usage --- eth/core/chain.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/core/chain.go b/eth/core/chain.go index 16c103e38..17a21371c 100644 --- a/eth/core/chain.go +++ b/eth/core/chain.go @@ -40,8 +40,8 @@ import ( "github.com/ethereum/go-ethereum/trie" ) -// By default we are storing up to 1024 items in each cache. -const defaultCacheSize = 1024 +// By default we are storing up to 512 items in each cache. +const defaultCacheSize = 512 // Compile-time check to ensure that `blockchain` implements the `Blockchain` api. var _ Blockchain = (*blockchain)(nil)