Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2019 Changes in this version + const Klay62 + const Klay63 + var ErrFutureBlock = errors.New("block in the future") + var ErrInvalidNumber = errors.New("invalid block number") + var ErrPrunedAncestor = errors.New("pruned ancestor") + var ErrUnknownAncestor = errors.New("unknown ancestor") + var KlayProtocol = Protocol + type Broadcaster interface + Enqueue func(id string, block *types.Block) + FindCNPeers func(map[common.Address]bool) map[common.Address]Peer + FindPeers func(map[common.Address]bool) map[common.Address]Peer + GetCNPeers func() map[common.Address]Peer + GetENPeers func() map[common.Address]Peer + RegisterValidator func(conType p2p.ConnType, validator p2p.PeerTypeValidator) + type ChainReader interface + Config func() *params.ChainConfig + CurrentHeader func() *types.Header + GetBlock func(hash common.Hash, number uint64) *types.Block + GetHeader func(hash common.Hash, number uint64) *types.Header + GetHeaderByHash func(hash common.Hash) *types.Header + GetHeaderByNumber func(number uint64) *types.Header + State func() (*state.StateDB, error) + type Engine interface + APIs func(chain ChainReader) []rpc.API + Author func(header *types.Header) (common.Address, error) + CalcBlockScore func(chain ChainReader, time uint64, parent *types.Header) *big.Int + Finalize func(chain ChainReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + Prepare func(chain ChainReader, header *types.Header) error + Protocol func() Protocol + Seal func(chain ChainReader, block *types.Block, stop <-chan struct{}) (*types.Block, error) + VerifyHeader func(chain ChainReader, header *types.Header, seal bool) error + VerifyHeaders func(chain ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + VerifySeal func(chain ChainReader, header *types.Header) error + type Handler interface + HandleMsg func(address common.Address, data p2p.Msg) (bool, error) + NewChainHead func() error + RegisterConsensusMsgCode func(Peer) + SetBroadcaster func(Broadcaster, p2p.ConnType) + type Istanbul interface + Start func(chain ChainReader, currentBlock func() *types.Block, ...) error + Stop func() error + type Peer interface + RegisterConsensusMsgCode func(msgCode uint64) + Send func(msgcode uint64, data interface{}) error + type PoW interface + Hashrate func() float64 + type Protocol struct + Lengths []uint64 + Name string + Versions []uint