From 9544b606f19dccd242a0c6a5b83a5ff28950bec5 Mon Sep 17 00:00:00 2001 From: Devon Bear Date: Wed, 1 Nov 2023 14:30:02 -0400 Subject: [PATCH] remove unused cache --- eth/core/chain.go | 2 -- eth/core/chain_writer.go | 1 - 2 files changed, 3 deletions(-) diff --git a/eth/core/chain.go b/eth/core/chain.go index 9ead12d5a..53fcf2816 100644 --- a/eth/core/chain.go +++ b/eth/core/chain.go @@ -80,8 +80,6 @@ type blockchain struct { currentBlock atomic.Pointer[types.Block] // finalizedBlock is the finalized/latest block. finalizedBlock atomic.Pointer[types.Block] - // currentReceipts is the current/pending receipts. - currentReceipts atomic.Value // receiptsCache is a cache of the receipts for the last `defaultCacheSizeBytes` bytes of // blocks. blockHash -> receipts diff --git a/eth/core/chain_writer.go b/eth/core/chain_writer.go index 2b59697f4..6edb47b09 100644 --- a/eth/core/chain_writer.go +++ b/eth/core/chain_writer.go @@ -112,7 +112,6 @@ func (bc *blockchain) WriteBlockAndSetHead( // Write the receipts cache. // TODO deprecate this cache? if receipts != nil { - bc.currentReceipts.Store(receipts) bc.receiptsCache.Add(block.Hash(), receipts) }