Documentation ¶
Index ¶
- type MeerEngine
- func (me *MeerEngine) APIs(chain consensus.ChainHeaderReader) []rpc.API
- func (me *MeerEngine) Author(header *types.Header) (common.Address, error)
- func (me *MeerEngine) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int
- func (me *MeerEngine) Close() error
- func (me *MeerEngine) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...)
- func (me *MeerEngine) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error)
- func (me *MeerEngine) OnExtraStateChange(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB)
- func (me *MeerEngine) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error
- func (me *MeerEngine) Seal(chain consensus.ChainHeaderReader, block *types.Block, ...) error
- func (me *MeerEngine) SealHash(header *types.Header) (hash common.Hash)
- func (me *MeerEngine) SetThreads(threads int)
- func (me *MeerEngine) Threads() int
- func (me *MeerEngine) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error
- func (me *MeerEngine) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header) (chan<- struct{}, <-chan error)
- func (me *MeerEngine) VerifyUncles(chain consensus.ChainReader, block *types.Block) error
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) 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 (*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
Click to show internal directories.
Click to hide internal directories.