aboutsummaryrefslogtreecommitdiffstats
path: root/blockpool/blockpool.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-06 02:33:57 +0800
committerzelig <viktor.tron@gmail.com>2015-03-06 02:33:57 +0800
commit9067b2848a44d7a58ab794accfebd697207f26c7 (patch)
tree1aab41ee210ca814c3d2971b7f78ca86ada3021b /blockpool/blockpool.go
parent2c616bd2795974877b0d3e23e99f6eff9e775218 (diff)
downloaddexon-9067b2848a44d7a58ab794accfebd697207f26c7.tar.gz
dexon-9067b2848a44d7a58ab794accfebd697207f26c7.tar.zst
dexon-9067b2848a44d7a58ab794accfebd697207f26c7.zip
fix wonky head section loop; correct status counts
Diffstat (limited to 'blockpool/blockpool.go')
-rw-r--r--blockpool/blockpool.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/blockpool/blockpool.go b/blockpool/blockpool.go
index eb3b415dc..c3e20801a 100644
--- a/blockpool/blockpool.go
+++ b/blockpool/blockpool.go
@@ -33,7 +33,7 @@ var (
// timeout interval: max time allowed for peer without sending a block
blocksTimeout = 60 * time.Second
//
- idleBestPeerTimeout = 60 * time.Second
+ idleBestPeerTimeout = 120 * time.Second
)
// config embedded in components, by default fall back to constants
@@ -568,6 +568,7 @@ func (self *BlockPool) AddBlock(block *types.Block, peerId string) {
// sender.currentBlockC <- block
self.status.lock.Lock()
+ self.status.values.BlockHashes++
self.status.values.Blocks++
self.status.values.BlocksInPool++
self.status.lock.Unlock()