eth, eth/downloader: do async block fetches, add dl tests

This commit is contained in:
Péter Szilágyi
2015-06-15 12:26:05 +03:00
parent 30a9939388
commit b240983e2b
3 changed files with 47 additions and 5 deletions

View File

@ -74,7 +74,7 @@ func (p *peer) Fetch(request *fetchRequest) error {
for hash, _ := range request.Hashes {
hashes = append(hashes, hash)
}
p.getBlocks(hashes)
go p.getBlocks(hashes)
return nil
}