Documentation ¶
Index ¶
Constants ¶
View Source
const ( Eth62 = 62 Eth63 = 63 )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Broadcaster ¶
type ChainReader ¶
type ChainReader interface { Config() *params.ChainConfig CurrentHeader() *types.Header GetHeader(hash common.Hash, number uint64) *types.Header GetHeaderByNumber(number uint64) *types.Header GetHeaderByHash(hash common.Hash) *types.Header GetBlock(hash common.Hash, number uint64) *types.Block GetBlockByNumber(number uint64) *types.Block GetTd(hash common.Hash, number uint64) *big.Int CurrentBlock() *types.Block State() (*state.StateDB, error) }
type ChainValidator ¶
type Engine ¶
type Engine interface { Author(header *types.Header) (common.Address, error) VerifyHeader(chain ChainReader, header *types.Header, seal bool) error VerifyHeaders(chain ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) VerifyUncles(chain ChainReader, block *types.Block) error VerifySeal(chain ChainReader, header *types.Header) error Prepare(chain ChainReader, header *types.Header) error Finalize(chain ChainReader, header *types.Header, state *state.StateDB, txs []*types.Transaction, totalGasFee *big.Int, uncles []*types.Header, receipts []*types.Receipt, ops *types.PendingOps) (*types.Block, error) Seal(chain ChainReader, block *types.Block, stop <-chan struct{}) (interface{}, error) CalcDifficulty(chain ChainReader, time uint64, parent *types.Header) *big.Int APIs(chain ChainReader) []rpc.API Close() error Protocol() Protocol }
type EngineStartStop ¶
Click to show internal directories.
Click to hide internal directories.