Versions in this module Expand all Collapse all v0 v0.1.0 May 8, 2018 Changes in this version + const EpochDuration + const MaxBlockFetch + const MaxBodyFetch + const MaxForkAncestry + const MaxHashFetch + const MaxHeaderFetch + const MaxReceiptFetch + const MaxSkeletonSize + const MaxStateFetch + type DoneEvent struct + Hash common.Hash + Peer *peer + TD *big.Int + type Downloader struct + func New(stateDb ethdb.Database, mux *event.TypeMux, hasHeader headerCheckFn, ...) *Downloader + func (d *Downloader) DeliverBodies(id string, transactions [][]*types.Transaction, uncles [][]*types.Header) (err error) + func (d *Downloader) DeliverHeaders(id string, headers []*types.Header) (err error) + func (d *Downloader) DeliverNodeData(id string, data [][]byte) (err error) + func (d *Downloader) DeliverReceipts(id string, receipts [][]*types.Receipt) (err error) + func (d *Downloader) GetMode() SyncMode + func (d *Downloader) GetPeers() *peerSet + func (d *Downloader) Progress() (uint64, uint64, uint64, uint64, uint64) + func (d *Downloader) Qos() (rtt time.Duration, ttl time.Duration, conf float64) + func (d *Downloader) RegisterPeer(id string, version int, name string, currentHead currentHeadRetrievalFn, ...) error + func (d *Downloader) Synchronise(id string, head common.Hash, td *big.Int, mode SyncMode) bool + func (d *Downloader) Synchronising() bool + func (d *Downloader) Terminate() + func (d *Downloader) UnregisterPeer(id string) error + type FailedEvent struct + Err error + Peer *peer + type Progress struct + Current uint64 + Height uint64 + Known uint64 + Origin uint64 + Pulled uint64 + type PublicDownloaderAPI struct + func NewPublicDownloaderAPI(d *Downloader, m *event.TypeMux) *PublicDownloaderAPI + func (api *PublicDownloaderAPI) Syncing(ctx context.Context) (rpc.Subscription, error) + type StartEvent struct + Hash common.Hash + Peer *peer + TD *big.Int + type SyncMode int + const FastSync + const FullSync + const LightSync + func (m SyncMode) String() string + type SyncingResult struct + Status Progress + Syncing bool