From c83d83c80e5e95e70839092d4a2b1e088fd7a0a6 Mon Sep 17 00:00:00 2001 From: protolambda Date: Sun, 11 Sep 2022 11:41:18 +0200 Subject: [PATCH] optimism: post-merge network should not log warnings about missing transition information (#5) --- eth/catalyst/api.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 5c5f820a28d3..5a855859742c 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -138,6 +138,9 @@ func NewConsensusAPI(eth *eth.Ethereum) *ConsensusAPI { invalidTipsets: make(map[common.Hash]*types.Header), } eth.Downloader().SetBadBlockCallback(api.setInvalidAncestor) + if api.eth.BlockChain().Config().Optimism != nil { // don't start the api heartbeat, there is no transition + return api + } go api.heartbeat() return api