diff options
Diffstat (limited to 'block_pool.go')
-rw-r--r-- | block_pool.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block_pool.go b/block_pool.go index 0a668e111..6753308b6 100644 --- a/block_pool.go +++ b/block_pool.go @@ -33,6 +33,10 @@ func NewBlockPool(eth *Ethereum) *BlockPool { } } +func (self *BlockPool) Len() int { + return len(self.hashPool) +} + func (self *BlockPool) HasLatestHash() bool { return self.pool[string(self.eth.BlockChain().CurrentBlock.Hash())] != nil } |