mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-14 03:56:36 +00:00
eth/catalyst: better warning for ttd not configured (#25394)
This commit is contained in:
parent
6da1fce265
commit
b2be5f956f
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ type ConsensusAPI struct {
|
||||||
// The underlying blockchain needs to have a valid terminal total difficulty set.
|
// The underlying blockchain needs to have a valid terminal total difficulty set.
|
||||||
func NewConsensusAPI(eth *eth.Ethereum) *ConsensusAPI {
|
func NewConsensusAPI(eth *eth.Ethereum) *ConsensusAPI {
|
||||||
if eth.BlockChain().Config().TerminalTotalDifficulty == nil {
|
if eth.BlockChain().Config().TerminalTotalDifficulty == nil {
|
||||||
log.Warn("Engine API started without valid total difficulty")
|
log.Warn("Engine API started but chain not configured for merge yet")
|
||||||
}
|
}
|
||||||
return &ConsensusAPI{
|
return &ConsensusAPI{
|
||||||
eth: eth,
|
eth: eth,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue