Versions in this module Expand all Collapse all v1 v1.0.2 Jan 15, 2024 v1.0.1 Jan 15, 2024 Changes in this version + var ErrFutureBlock = errors.New("block in the future") + var ErrInvalidL1MessageOrder = errors.New("invalid L1 message order") + var ErrInvalidNumber = errors.New("invalid block number") + var ErrInvalidTxCount = errors.New("invalid transaction count") + var ErrMissingL1MessageData = errors.New("unknown L1 message data") + var ErrPrunedAncestor = errors.New("pruned ancestor") + var ErrUnknownAncestor = errors.New("unknown ancestor") + var ErrUnknownL1Message = errors.New("unknown L1 message") + type ChainHeaderReader interface + Config func() *params.ChainConfig + CurrentHeader func() *types.Header + GetHeader func(hash common.Hash, number uint64) *types.Header + GetHeaderByHash func(hash common.Hash) *types.Header + GetHeaderByNumber func(number uint64) *types.Header + type ChainReader interface + GetBlock func(hash common.Hash, number uint64) *types.Block + type Engine interface + APIs func(chain ChainHeaderReader) []rpc.API + Author func(header *types.Header) (common.Address, error) + CalcDifficulty func(chain ChainHeaderReader, time uint64, parent *types.Header) *big.Int + Close func() error + Finalize func(chain ChainHeaderReader, header *types.Header, state *state.StateDB, ...) + FinalizeAndAssemble func(chain ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + Prepare func(chain ChainHeaderReader, header *types.Header) error + Seal func(chain ChainHeaderReader, block *types.Block, results chan<- *types.Block, ...) error + SealHash func(header *types.Header) common.Hash + VerifyHeader func(chain ChainHeaderReader, header *types.Header, seal bool) error + VerifyHeaders func(chain ChainHeaderReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + VerifyUncles func(chain ChainReader, block *types.Block) error + type PoW interface + Hashrate func() float64