Versions in this module Expand all Collapse all v1 v1.0.2 Aug 19, 2015 Changes in this version + var MaxBlockFetch = 128 + var MaxHashFetch = 512 + var MinHashFetch = 512 + type Block struct + OriginPeer string + RawBlock *types.Block + type DoneEvent struct + type Downloader struct + func New(mux *event.TypeMux, hasBlock hashCheckFn, getBlock blockRetrievalFn, ...) *Downloader + func (d *Downloader) DeliverBlocks(id string, blocks []*types.Block) error + func (d *Downloader) DeliverHashes(id string, hashes []common.Hash) error + func (d *Downloader) Has(hash common.Hash) bool + func (d *Downloader) RegisterPeer(id string, version int, head common.Hash, getRelHashes relativeHashFetcherFn, ...) error + func (d *Downloader) Stats() (pending int, cached int, importing int, estimate time.Duration) + func (d *Downloader) Synchronise(id string, head common.Hash, td *big.Int) + func (d *Downloader) Synchronising() bool + func (d *Downloader) Terminate() + func (d *Downloader) UnregisterPeer(id string) error + type FailedEvent struct + Err error + type StartEvent struct