core: fix HasBlock comment

This commit is contained in:
Felix Lange 2017-09-08 19:29:15 +02:00
parent c9b7a2a4b7
commit 82d2eec4fe

View file

@ -514,8 +514,7 @@ func (bc *BlockChain) GetBodyRLP(hash common.Hash) rlp.RawValue {
return body return body
} }
// HasBlock checks if a block is fully present in the database or not, caching // HasBlock checks if a block is fully present in the database or not.
// it if present.
func (bc *BlockChain) HasBlock(hash common.Hash, number uint64) bool { func (bc *BlockChain) HasBlock(hash common.Hash, number uint64) bool {
if bc.blockCache.Contains(hash) { if bc.blockCache.Contains(hash) {
return true return true