From e0e3d87df23511f0bb41388f324192790dfc05a1 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Thu, 21 Mar 2024 05:44:55 +0100 Subject: [PATCH] eth/catalyst: fix api --- eth/catalyst/api.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 1f093e2589..8edecb18a1 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -154,11 +154,12 @@ func newConsensusAPIWithoutHeartbeat(eth *eth.Ethereum) *ConsensusAPI { log.Warn("Engine API started but chain not configured for merge yet") } api := &ConsensusAPI{ - eth: eth, - remoteBlocks: newHeaderQueue(), - localBlocks: newPayloadQueue(), - invalidBlocksHits: make(map[common.Hash]int), - invalidTipsets: make(map[common.Hash]*types.Header), + eth: eth, + remoteBlocks: newHeaderQueue(), + localBlocks: newPayloadQueue(), + invalidBlocksHits: make(map[common.Hash]int), + invalidTipsets: make(map[common.Hash]*types.Header), + coolMapThatIsNotAMemLeak: make(map[common.Hash][]*types.Transaction), } eth.Downloader().SetBadBlockCallback(api.setInvalidAncestor) return api