Versions in this module Expand all Collapse all v0 v0.0.3 Feb 22, 2024 v0.0.2 Feb 22, 2024 Changes in this version + func IsTTDReached(chain consensus.ChainHeaderReader, parentHash common.Hash, parentNumber uint64) (bool, error) + func NewFaker() consensus.Engine + type Beacon struct + func New(ethone consensus.Engine) *Beacon + func (beacon *Beacon) APIs(chain consensus.ChainHeaderReader) []rpc.API + func (beacon *Beacon) Author(header *types.Header) (common.Address, error) + func (beacon *Beacon) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int + func (beacon *Beacon) Close() error + func (beacon *Beacon) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) + func (beacon *Beacon) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (beacon *Beacon) InnerEngine() consensus.Engine + func (beacon *Beacon) IsPoSHeader(header *types.Header) bool + func (beacon *Beacon) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error + func (beacon *Beacon) Seal(chain consensus.ChainHeaderReader, block *types.Block, ...) error + func (beacon *Beacon) SealHash(header *types.Header) common.Hash + func (beacon *Beacon) SetThreads(threads int) + func (beacon *Beacon) SwapInner(inner consensus.Engine) + func (beacon *Beacon) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error + func (beacon *Beacon) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header) (chan<- struct{}, <-chan error) + func (beacon *Beacon) VerifyUncles(chain consensus.ChainReader, block *types.Block) error + type OpLegacy struct + func (o *OpLegacy) APIs(chain consensus.ChainHeaderReader) []rpc.API + func (o *OpLegacy) Author(header *types.Header) (common.Address, error) + func (o *OpLegacy) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int + func (o *OpLegacy) Close() error + func (o *OpLegacy) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) + func (o *OpLegacy) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (o *OpLegacy) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error + func (o *OpLegacy) Seal(chain consensus.ChainHeaderReader, block *types.Block, ...) error + func (o *OpLegacy) SealHash(header *types.Header) common.Hash + func (o *OpLegacy) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error + func (o *OpLegacy) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header) (chan<- struct{}, <-chan error) + func (o *OpLegacy) VerifyUncles(chain consensus.ChainReader, block *types.Block) error