Skip to content

Commit dcf1a19

Browse files
committed
moved
1 parent 8eff550 commit dcf1a19

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎eth/downloader/downloader.go‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,12 @@ out:
359359
return nil
360360
}
361361

362+
// Deliver a chunk to the downloader. This is usually done through the BlocksMsg by
363+
// the protocol handler.
364+
func (d *Downloader) DeliverChunk(id string, blocks []*types.Block) {
365+
d.blockCh <- blockPack{id, blocks}
366+
}
367+
362368
func (d *Downloader) AddHashes(id string, hashes []common.Hash) error {
363369
// make sure that the hashes that are being added are actually from the peer
364370
// that's the current active peer. hashes that have been received from other
@@ -422,12 +428,6 @@ func (d *Downloader) AddBlock(id string, block *types.Block, td *big.Int) error
422428
return d.process()
423429
}
424430

425-
// Deliver a chunk to the downloader. This is usually done through the BlocksMsg by
426-
// the protocol handler.
427-
func (d *Downloader) DeliverChunk(id string, blocks []*types.Block) {
428-
d.blockCh <- blockPack{id, blocks}
429-
}
430-
431431
func (d *Downloader) process() error {
432432
atomic.StoreInt32(&d.processingBlocks, 1)
433433
defer atomic.StoreInt32(&d.processingBlocks, 0)

0 commit comments

Comments
 (0)