Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributesMatchBlock ¶
func AttributesMatchBlock(rollupCfg *rollup.Config, attrs *eth.PayloadAttributes, parentHash common.Hash, envelope *eth.ExecutionPayloadEnvelope, l log.Logger) error
AttributesMatchBlock checks if the L2 attributes pre-inputs match the output nil if it is a match. If err is not nil, the error contains the reason for the mismatch
Types ¶
type AttributesHandler ¶
type AttributesHandler struct {
// contains filtered or unexported fields
}
func NewAttributesHandler ¶
func (*AttributesHandler) HasAttributes ¶
func (eq *AttributesHandler) HasAttributes() bool
func (*AttributesHandler) Proceed ¶
func (eq *AttributesHandler) Proceed(ctx context.Context) error
Proceed processes block attributes, if any. Proceed returns io.EOF if there are no attributes to process. Proceed returns a temporary, reset, or critical error like other derivers. Proceed returns no error if the safe-head may have changed.
func (*AttributesHandler) SetAttributes ¶
func (eq *AttributesHandler) SetAttributes(attributes *derive.AttributesWithParent)
type Engine ¶
type Engine interface { derive.EngineControl SetUnsafeHead(eth.L2BlockRef) SetSafeHead(eth.L2BlockRef) SetBackupUnsafeL2Head(block eth.L2BlockRef, triggerReorg bool) SetPendingSafeL2Head(eth.L2BlockRef) PendingSafeL2Head() eth.L2BlockRef BackupUnsafeL2Head() eth.L2BlockRef }
Click to show internal directories.
Click to hide internal directories.