Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
MaxStateFetch = 384 // Amount of node state values to allow fetching per request
)
Functions ¶
This section is empty.
Types ¶
type Leecher ¶
type Leecher struct { SnapSyncer *snap.Syncer // TODO(karalabe): make private! hack for now // contains filtered or unexported fields }
func (*Leecher) DeliverSnapPacket ¶
DeliverSnapPacket is invoked from a peer's message handler when it transmits a data packet for the local node to consume.
func (*Leecher) Progress ¶
func (d *Leecher) Progress() ethereum.SyncProgress
Progress retrieves the synchronisation boundaries, specifically the origin block where synchronisation started at (may have failed/suspended); the block or header sync is currently at; and the latest known block which the sync targets.
In addition, during the state download phase of fast synchronisation the number of processed and the total number of known states are also returned. Otherwise these are zero.
Click to show internal directories.
Click to hide internal directories.