consensus

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: ISC Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MeerEngine

type MeerEngine struct {
	// contains filtered or unexported fields
}

func New

func New() *MeerEngine

func (*MeerEngine) APIs

func (me *MeerEngine) APIs(chain consensus.ChainHeaderReader) []rpc.API

func (*MeerEngine) Author

func (me *MeerEngine) Author(header *types.Header) (common.Address, error)

func (*MeerEngine) CalcDifficulty

func (me *MeerEngine) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int

func (*MeerEngine) Close

func (me *MeerEngine) Close() error

func (*MeerEngine) Finalize

func (me *MeerEngine) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, body *types.Body)

func (*MeerEngine) FinalizeAndAssemble

func (me *MeerEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, body *types.Body, receipts []*types.Receipt) (*types.Block, error)

func (*MeerEngine) OnExtraStateChange

func (me *MeerEngine) OnExtraStateChange(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB)

func (*MeerEngine) Prepare

func (me *MeerEngine) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error

func (*MeerEngine) Seal

func (me *MeerEngine) Seal(chain consensus.ChainHeaderReader, block *types.Block, results chan<- *types.Block, stop <-chan struct{}) error

func (*MeerEngine) SealHash

func (me *MeerEngine) SealHash(header *types.Header) (hash common.Hash)

func (*MeerEngine) SetThreads

func (me *MeerEngine) SetThreads(threads int)

func (*MeerEngine) Threads

func (me *MeerEngine) Threads() int

func (*MeerEngine) VerifyHeader

func (me *MeerEngine) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error

func (*MeerEngine) VerifyHeaders

func (me *MeerEngine) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header) (chan<- struct{}, <-chan error)

func (*MeerEngine) VerifyUncles

func (me *MeerEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL