Skip to content

Commit

Permalink
optimism: post-merge network should not log warnings about missing tr…
Browse files Browse the repository at this point in the history
…ansition information (#5)
  • Loading branch information
protolambda committed Nov 4, 2022
1 parent 2a4abfa commit c83d83c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions eth/catalyst/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c83d83c

Please sign in to comment.