Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
remove unused cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Devon Bear committed Nov 1, 2023
1 parent f31c9dc commit 9544b60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions eth/core/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion eth/core/chain_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 9544b60

Please sign in to comment.