aboutsummaryrefslogtreecommitdiffstats
path: root/eth/sync.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-06-15 17:26:05 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-06-15 17:26:05 +0800
commitb240983e2bafcde1c5902ce3a196b22475412f16 (patch)
tree95a2f06dcf9320dc8e3d3104ad0cec5930db6f03 /eth/sync.go
parent30a9939388ac738aba39eb64c287bbf9bbda91c9 (diff)
downloadgo-tangerine-b240983e2bafcde1c5902ce3a196b22475412f16.tar
go-tangerine-b240983e2bafcde1c5902ce3a196b22475412f16.tar.gz
go-tangerine-b240983e2bafcde1c5902ce3a196b22475412f16.tar.bz2
go-tangerine-b240983e2bafcde1c5902ce3a196b22475412f16.tar.lz
go-tangerine-b240983e2bafcde1c5902ce3a196b22475412f16.tar.xz
go-tangerine-b240983e2bafcde1c5902ce3a196b22475412f16.tar.zst
go-tangerine-b240983e2bafcde1c5902ce3a196b22475412f16.zip
eth, eth/downloader: do async block fetches, add dl tests
Diffstat (limited to 'eth/sync.go')
-rw-r--r--eth/sync.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/sync.go b/eth/sync.go
index 88a76805c..917fc0fce 100644
--- a/eth/sync.go
+++ b/eth/sync.go
@@ -171,7 +171,7 @@ func (pm *ProtocolManager) fetcher() {
// Send out all block requests
for peer, hashes := range request {
glog.V(logger.Debug).Infof("Explicitly fetching %d blocks from %s", len(hashes), peer.id)
- peer.requestBlocks(hashes)
+ go peer.requestBlocks(hashes)
}
request = make(map[*peer][]common.Hash)