Versions in this module Expand all Collapse all v1 v1.1.3 Feb 13, 2020 Changes in this version + type Fetcher struct + func New(getBlock blockRetrievalFn, verifyHeader headerVerifierFn, ...) *Fetcher + func (f *Fetcher) Enqueue(peer string, block *types.SnailBlock) error + func (f *Fetcher) FilterBodies(peer string, fruits [][]*types.SnailBlock, time time.Time) [][]*types.SnailBlock + func (f *Fetcher) FilterHeaders(peer string, headers []*types.SnailHeader, time time.Time) []*types.SnailHeader + func (f *Fetcher) Notify(peer string, hash common.Hash, number uint64, time time.Time, ...) error + func (f *Fetcher) Start() + func (f *Fetcher) Stop()