mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 10:32:19 +00:00
17 lines
556 B
Go
17 lines
556 B
Go
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, beaconParentRoot *libcommon.Hash) (bool, error)
|
|
ForkChoiceUpdate(finalized libcommon.Hash, head libcommon.Hash) error
|
|
}
|