finally merged *the missing*

This commit is contained in:
obscuren
2015-03-23 12:12:49 +01:00
parent 0846e15667
commit 0be6d34048
3 changed files with 52 additions and 15 deletions

View File

@ -66,3 +66,8 @@ func (bc *BlockCache) Get(hash common.Hash) *types.Block {
return nil
}
func (bc *BlockCache) Has(hash common.Hash) bool {
_, ok := bc.blocks[hash]
return ok
}