diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-23 19:12:49 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-23 19:12:49 +0800 |
commit | 0be6d3404898a8e68f2f78cfa6b64d6b1f314fb0 (patch) | |
tree | 69763d1205820b3848719b0155b9a3732603bd80 /core/block_cache.go | |
parent | 0846e156678b91416652359ffa7941c647cec37d (diff) | |
download | go-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.go | 5 |
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 +} |