Versions in this module Expand all Collapse all v1 v1.5.6 Dec 23, 2019 Changes in this version + type Fetcher struct + func New(getBlock blockRetrievalFn, verifyHeader headerVerifierFn, ...) *Fetcher + func (f *Fetcher) Enqueue(peer string, block *types.Block) error + func (f *Fetcher) FilterBodies(peer string, transactions [][]*types.Transaction, uncles [][]*types.Header, ...) ([][]*types.Transaction, [][]*types.Header) + func (f *Fetcher) FilterHeaders(peer string, headers []*types.Header, time time.Time) []*types.Header + func (f *Fetcher) Notify(peer string, hash common.Hash, number uint64, time time.Time, ...) error + func (f *Fetcher) SetAppendM2HeaderHook(appendM2HeaderHook func(*types.Block) (*types.Block, bool, error)) + func (f *Fetcher) SetSignHook(signHook func(*types.Block) error) + func (f *Fetcher) Start() + func (f *Fetcher) Stop()