aboutsummaryrefslogtreecommitdiffstats
path: root/eth/downloader/queue.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-24 21:36:48 +0800
committerobscuren <geffobscura@gmail.com>2015-04-24 21:37:07 +0800
commitbd9c76097d485b55ae808fee345d1d76801df1ea (patch)
treea6a641cc5c9af103f1a5eaa7d86d3ec1cfe6c345 /eth/downloader/queue.go
parent31f82eb3347454f64f3d41de3087109d09597806 (diff)
downloadgo-tangerine-bd9c76097d485b55ae808fee345d1d76801df1ea.tar
go-tangerine-bd9c76097d485b55ae808fee345d1d76801df1ea.tar.gz
go-tangerine-bd9c76097d485b55ae808fee345d1d76801df1ea.tar.bz2
go-tangerine-bd9c76097d485b55ae808fee345d1d76801df1ea.tar.lz
go-tangerine-bd9c76097d485b55ae808fee345d1d76801df1ea.tar.xz
go-tangerine-bd9c76097d485b55ae808fee345d1d76801df1ea.tar.zst
go-tangerine-bd9c76097d485b55ae808fee345d1d76801df1ea.zip
eth/downloader: removed peer td management and best peer selection
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()