erigon-pulse/cl/phase1/execution_client/interface.go

17 lines
522 B
Go
Raw Normal View History

package execution_client
import (
libcommon "github.com/ledgerwatch/erigon-lib/common"
"github.com/ledgerwatch/erigon/cl/cltypes"
)
var errContextExceeded = "rpc error: code = DeadlineExceeded desc = context deadline exceeded"
// ExecutionEngine is used only for syncing up very close to chain tip and to stay in sync.
// It pretty much mimics engine API.
type ExecutionEngine interface {
NewPayload(payload *cltypes.Eth1Block) (bool, error)
ForkChoiceUpdate(finalized libcommon.Hash, head libcommon.Hash) error
}