Skip to content

Commit

Permalink
add extra error info when meet a unexpected el sync
Browse files Browse the repository at this point in the history
  • Loading branch information
krish-nr committed Jul 31, 2024
1 parent 0c45fd0 commit 9abc9d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eth/catalyst/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import (
"github.com/ethereum/go-ethereum/miner"
"github.com/ethereum/go-ethereum/node"
"github.com/ethereum/go-ethereum/rpc"
"strings"
)

var (
Expand Down Expand Up @@ -681,6 +682,9 @@ func (api *ConsensusAPI) delayPayloadImport(block *types.Block) (engine.PayloadS
// that the parent state is missing and the syncer rejected extending the
// current cycle with the new payload.
log.Warn("Ignoring payload with missing parent", "number", block.NumberU64(), "hash", block.Hash(), "parent", block.ParentHash(), "reason", err)
if strings.Contains(err.Error(), "forced head needed for startup") {
return engine.PayloadStatusV1{Status: engine.SYNCING}, err
}
} else {
// In non-full sync mode (i.e. snap sync) all payloads are rejected until
// snap sync terminates as snap sync relies on direct database injections
Expand Down

0 comments on commit 9abc9d4

Please sign in to comment.