aboutsummaryrefslogtreecommitdiffstats
path: root/core/block_cache.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-23 19:12:49 +0800
committerobscuren <geffobscura@gmail.com>2015-03-23 19:12:49 +0800
commit0be6d3404898a8e68f2f78cfa6b64d6b1f314fb0 (patch)
tree69763d1205820b3848719b0155b9a3732603bd80 /core/block_cache.go
parent0846e156678b91416652359ffa7941c647cec37d (diff)
downloadgo-tangerine-0be6d3404898a8e68f2f78cfa6b64d6b1f314fb0.tar.gz
go-tangerine-0be6d3404898a8e68f2f78cfa6b64d6b1f314fb0.tar.zst
go-tangerine-0be6d3404898a8e68f2f78cfa6b64d6b1f314fb0.zip
finally merged *the missing*
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
+}