aboutsummaryrefslogtreecommitdiffstats
path: root/core/blockchain.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/blockchain.go')
-rw-r--r--core/blockchain.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/blockchain.go b/core/blockchain.go
index ae4fbbcd7..cc0ddf1ed 100644
--- a/core/blockchain.go
+++ b/core/blockchain.go
@@ -597,7 +597,7 @@ func (bc *BlockChain) Stop() {
func (self *BlockChain) procFutureBlocks() {
blocks := make([]*types.Block, 0, self.futureBlocks.Len())
for _, hash := range self.futureBlocks.Keys() {
- if block, exist := self.futureBlocks.Get(hash); exist {
+ if block, exist := self.futureBlocks.Peek(hash); exist {
blocks = append(blocks, block.(*types.Block))
}
}