mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-05 10:32:19 +00:00
bff1e0e901
Allows for Caplin to be used with other ELs from aside of Erigon --------- Co-authored-by: Giulio <giulio.rebuffo@gmail.com>
17 lines
522 B
Go
17 lines
522 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) (bool, error)
|
|
ForkChoiceUpdate(finalized libcommon.Hash, head libcommon.Hash) error
|
|
}
|