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
}
// HasBlock checks if a block is fully present in the database or not, caching
// it if present.
// HasBlock checks if a block is fully present in the database or not.
func (bc *BlockChain) HasBlock(hash common.Hash, number uint64) bool {
if bc.blockCache.Contains(hash) {
return true