From 0be6d3404898a8e68f2f78cfa6b64d6b1f314fb0 Mon Sep 17 00:00:00 2001 From: obscuren Date: Mon, 23 Mar 2015 12:12:49 +0100 Subject: finally merged *the missing* --- core/block_cache.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/block_cache.go') diff --git a/core/block_cache.go b/core/block_cache.go index 321021eb4..ea39e78e8 100644 --- a/core/block_cache.go +++ b/core/block_cache.go @@ -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 +} -- cgit