Versions in this module Expand all Collapse all v1 v1.0.3 Apr 10, 2023 Changes in this version + var ErrExceedsGasLimit = errors.New("tx gas exceeds block gas limit") + var ErrNotBuildingBlock = errors.New("not currently building a block, cannot include tx from queue") + var ErrUsesTooMuchGas = errors.New("action takes too much gas") + var STATUS_INVALID = ð.ForkchoiceUpdatedResult + var STATUS_SYNCING = ð.ForkchoiceUpdatedResult + type BlockDataProvider interface + Config func() *params.ChainConfig + Engine func() consensus.Engine + GetHeader func(common.Hash, uint64) *types.Header + GetVMConfig func() *vm.Config + StateAt func(root common.Hash) (*state.StateDB, error) + type BlockProcessor struct + func NewBlockProcessorFromHeader(provider BlockDataProvider, h *types.Header) (*BlockProcessor, error) + func NewBlockProcessorFromPayloadAttributes(provider BlockDataProvider, parent common.Hash, params *eth.PayloadAttributes) (*BlockProcessor, error) + func (b *BlockProcessor) AddTx(tx *types.Transaction) error + func (b *BlockProcessor) Assemble() (*types.Block, error) + func (b *BlockProcessor) CheckTxWithinGasLimit(tx *types.Transaction) error + func (b *BlockProcessor) Commit() error + type EngineBackend interface + Config func() *params.ChainConfig + CurrentFinalBlock func() *types.Header + CurrentSafeBlock func() *types.Header + Engine func() consensus.Engine + GetBlock func(hash common.Hash, number uint64) *types.Block + GetBlockByHash func(hash common.Hash) *types.Block + GetCanonicalHash func(n uint64) common.Hash + GetVMConfig func() *vm.Config + HasBlockAndState func(hash common.Hash, number uint64) bool + InsertBlockWithoutSetHead func(block *types.Block) error + SetCanonical func(head *types.Block) (common.Hash, error) + SetFinalized func(header *types.Header) + SetSafe func(header *types.Header) + StateAt func(root common.Hash) (*state.StateDB, error) + type L2EngineAPI struct + func NewL2EngineAPI(log log.Logger, backend EngineBackend) *L2EngineAPI + func (ea *L2EngineAPI) ForcedEmpty() bool + func (ea *L2EngineAPI) ForkchoiceUpdatedV1(ctx context.Context, state *eth.ForkchoiceState, attr *eth.PayloadAttributes) (*eth.ForkchoiceUpdatedResult, error) + func (ea *L2EngineAPI) GetPayloadV1(ctx context.Context, payloadId eth.PayloadID) (*eth.ExecutionPayload, error) + func (ea *L2EngineAPI) IncludeTx(tx *types.Transaction, from common.Address) error + func (ea *L2EngineAPI) NewPayloadV1(ctx context.Context, payload *eth.ExecutionPayload) (*eth.PayloadStatusV1, error) + func (ea *L2EngineAPI) PendingIndices(from common.Address) uint64 + func (ea *L2EngineAPI) RemainingBlockGas() uint64