Versions in this module Expand all Collapse all v22 v22.4.2 Apr 28, 2022 Changes in this version + const Istanbul100 + const Istanbul64 + const Istanbul99 + var CliqueProtocol = Protocol + 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 EthProtocol = Protocol + var IstanbulProtocol = Protocol + var NorewardsProtocol = Protocol + type Broadcaster interface + Enqueue func(id string, block *types.Block) + FindPeers func(map[common.Address]bool) map[common.Address]Peer + type ChainHeaderReader interface + Config func() *params.ChainConfig + CurrentHeader func() *types.Header + GetHeader func(hash common.Hash, number uint64) *types.Header + GetHeaderByHash func(hash common.Hash) *types.Header + GetHeaderByNumber func(number uint64) *types.Header + type ChainReader interface + GetBlock func(hash common.Hash, number uint64) *types.Block + type Engine interface + APIs func(chain ChainHeaderReader) []rpc.API + Author func(header *types.Header) (common.Address, error) + CalcDifficulty func(chain ChainHeaderReader, time uint64, parent *types.Header) *big.Int + Close func() error + Finalize func(chain ChainHeaderReader, header *types.Header, state *state.StateDB, ...) + FinalizeAndAssemble func(chain ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + Prepare func(chain ChainHeaderReader, header *types.Header) error + Protocol func() Protocol + Seal func(chain ChainHeaderReader, block *types.Block, results chan<- *types.Block, ...) error + SealHash func(header *types.Header) common.Hash + VerifyHeader func(chain ChainHeaderReader, header *types.Header, seal bool) error + VerifyHeaders func(chain ChainHeaderReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + VerifyUncles func(chain ChainReader, block *types.Block) error + type Handler interface + HandleMsg func(address common.Address, data p2p.Msg) (bool, error) + NewChainHead func() error + SetBroadcaster func(Broadcaster) + type Istanbul interface + Start func(chain ChainHeaderReader, currentBlock func() *types.Block, ...) error + Stop func() error + type Peer interface + Send func(msgcode uint64, data interface{}) error + SendConsensus func(msgcode uint64, data interface{}) error + SendQBFTConsensus func(msgcode uint64, payload []byte) error + type PoW interface + Hashrate func() float64 + type Protocol struct + Lengths map[uint]uint64 + Name string + Versions []uint Other modules containing this package github.com/baptiste-b-pegasys/quorum