Versions in this module Expand all Collapse all v1 v1.0.0 Oct 23, 2022 Changes in this version + func IsTTDReached(chain consensus.ChainHeaderReader, parentHash common.Hash, number uint64) (bool, error) + 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, seal bool) error + func (beacon *Beacon) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + func (beacon *Beacon) VerifyUncles(chain consensus.ChainReader, block *types.Block) error