aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'core/block_cache.go')
-rw-r--r--core/block_cache.go5
1 files changed, 5 insertions, 0 deletions
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
+}