aboutsummaryrefslogtreecommitdiffstats
path: root/blockpool/status.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-03-22 20:11:16 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-03-22 20:11:16 +0800
commit9682a3ef3ec72a871708a9bba1133fa59b58ccb5 (patch)
tree8680610d5d56cc118b61d3e0865f711789d91633 /blockpool/status.go
parente349fb935006c5f01932c7a71ebbfc3a2b200ce7 (diff)
parent95038fc62dc73da3f04bd37c0bdc29170eec0169 (diff)
downloadgo-tangerine-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.tar
go-tangerine-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.tar.gz
go-tangerine-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.tar.bz2
go-tangerine-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.tar.lz
go-tangerine-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.tar.xz
go-tangerine-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.tar.zst
go-tangerine-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.zip
Merge pull request #526 from ethersphere/frontier/blockpool
Frontier/blockpool
Diffstat (limited to 'blockpool/status.go')
-rw-r--r--blockpool/status.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/blockpool/status.go b/blockpool/status.go
index 4529c77fe..02e358510 100644
--- a/blockpool/status.go
+++ b/blockpool/status.go
@@ -3,6 +3,8 @@ package blockpool
import (
"fmt"
"sync"
+
+ "github.com/ethereum/go-ethereum/common"
)
type statusValues struct {
@@ -26,7 +28,7 @@ type statusValues struct {
type status struct {
lock sync.Mutex
values statusValues
- chain map[string]int
+ chain map[common.Hash]int
peers map[string]int
bestPeers map[string]int
badPeers map[string]int
@@ -35,7 +37,7 @@ type status struct {
func newStatus() *status {
return &status{
- chain: make(map[string]int),
+ chain: make(map[common.Hash]int),
peers: make(map[string]int),
bestPeers: make(map[string]int),
badPeers: make(map[string]int),