eth/downloader: improve comments

This commit is contained in:
Felix Lange 2017-05-31 03:45:56 +02:00 committed by Péter Szilágyi
parent 5029223881
commit 50d0c3f874
No known key found for this signature in database
GPG key ID: E9AE538CEDF8293D

View file

@ -1293,8 +1293,7 @@ func (d *Downloader) processHeaders(origin uint64, td *big.Int) error {
}
}
// processBlocks takes fetch results from the queue and tries to import them
// into the chain.
// processFullSyncContent takes fetch results from the queue and imports them into the chain.
func (d *Downloader) processFullSyncContent() error {
for {
results := d.queue.WaitResults()
@ -1339,6 +1338,8 @@ func (d *Downloader) importBlockResults(results []*fetchResult) error {
return nil
}
// processFastSyncContent takes fetch results from the queue and writes them to the
// database. It also controls the synchronisation of state nodes of the pivot block.
func (d *Downloader) processFastSyncContent(latest *types.Header) error {
// Start syncing state of the reported head block.
// This should get us most of the state of the pivot block.