mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 01:13:45 +00:00
core: fix HasBlock comment
This commit is contained in:
parent
c9b7a2a4b7
commit
82d2eec4fe
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue