Versions in this module Expand all Collapse all v1 v1.0.0 Dec 18, 2023 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) 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