From 50d0c3f8746e94093f5b8922f39ff05d5d479bc2 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 31 May 2017 03:45:56 +0200 Subject: [PATCH] eth/downloader: improve comments --- eth/downloader/downloader.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 9a30f8655a..31ddd02903 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -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.