aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/queue.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-25 06:56:17 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-25 06:56:17 +0800
commit8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4 (patch)
treeff72b1935c12817594466adfa3334e9f23736924 /eth/downloader/queue.go
parent7afbd0f20d39ed3957f696f49da8c159735e95d3 (diff)
parented036a2ce7d846297032a803fd7e82a3f84b239a (diff)
downloaddexon-8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4.tar
dexon-8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4.tar.gz
dexon-8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4.tar.bz2
dexon-8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4.tar.lz
dexon-8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4.tar.xz
dexon-8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4.tar.zst
dexon-8d09f95bc7a73aaf567b05028ebdb4f2ac5129e4.zip
Merge pull request #805 from obscuren/download_improvements
eth, eth/downloader: improve downloader and remove asynchronousness
Diffstat (limited to 'eth/downloader/queue.go')
-rw-r--r--eth/downloader/queue.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/eth/downloader/queue.go b/eth/downloader/queue.go
index adbc2a0d0..a21a44706 100644
--- a/eth/downloader/queue.go
+++ b/eth/downloader/queue.go
@@ -2,7 +2,6 @@ package downloader
import (
"math"
- "math/big"
"sync"
"time"
@@ -93,7 +92,7 @@ func (c *queue) has(hash common.Hash) bool {
return c.hashPool.Has(hash) || c.fetchPool.Has(hash)
}
-func (c *queue) addBlock(id string, block *types.Block, td *big.Int) {
+func (c *queue) addBlock(id string, block *types.Block) {
c.mu.Lock()
defer c.mu.Unlock()