diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-22 20:11:16 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-03-22 20:11:16 +0800 |
commit | 9682a3ef3ec72a871708a9bba1133fa59b58ccb5 (patch) | |
tree | 8680610d5d56cc118b61d3e0865f711789d91633 /blockpool/section.go | |
parent | e349fb935006c5f01932c7a71ebbfc3a2b200ce7 (diff) | |
parent | 95038fc62dc73da3f04bd37c0bdc29170eec0169 (diff) | |
download | dexon-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.tar.gz dexon-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.tar.zst dexon-9682a3ef3ec72a871708a9bba1133fa59b58ccb5.zip |
Merge pull request #526 from ethersphere/frontier/blockpool
Frontier/blockpool
Diffstat (limited to 'blockpool/section.go')
-rw-r--r-- | blockpool/section.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/blockpool/section.go b/blockpool/section.go index bcbd71cfc..14e91cf33 100644 --- a/blockpool/section.go +++ b/blockpool/section.go @@ -176,9 +176,9 @@ func (self *section) addSectionToBlockChain(p *peer) { self.bp.status.lock.Lock() if err == nil { - headKey := blocks[0].ParentHash().Str() + headKey := blocks[0].ParentHash() height := self.bp.status.chain[headKey] + len(blocks) - self.bp.status.chain[blocks[len(blocks)-1].Hash().Str()] = height + self.bp.status.chain[blocks[len(blocks)-1].Hash()] = height if height > self.bp.status.values.LongestChain { self.bp.status.values.LongestChain = height } |