From 830788e7929b6ed06833ac01c1fa5ed4d5cf820a Mon Sep 17 00:00:00 2001 From: Fredrik Date: Mon, 16 Jun 2025 23:17:31 +0200 Subject: [PATCH] testing something --- core/vm/contracts_cache.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/vm/contracts_cache.go b/core/vm/contracts_cache.go index 5c7f07cb5e..f0977c1afa 100644 --- a/core/vm/contracts_cache.go +++ b/core/vm/contracts_cache.go @@ -17,7 +17,7 @@ func init() { } func addCache(precompile common.Address, input, output []byte) { - /* + mu.Lock() defer mu.Unlock() cache, ok := caches[precompile] @@ -26,12 +26,12 @@ func addCache(precompile common.Address, input, output []byte) { caches[precompile] = cache } cache.Add(string(input), output) - */ + } func getCache(precompile common.Address, input []byte) ([]byte, bool) { - /* + mu.RLock() defer mu.RUnlock() cache, ok := caches[precompile] @@ -40,6 +40,6 @@ func getCache(precompile common.Address, input []byte) ([]byte, bool) { return nil, false } return cache.Get(string(input)) - */ + return nil, false }