code: func (p *peer) HasBlock(hash common.Hash, number uint64, hasState bool) bool {
  	p.lock.RLock()
  	hasBlock := p.hasBlock
  	p.lock.RUnlock()
  	return hasBlock != nil && hasBlock(hash, number, hasState)
  }
docs: // HasBlock checks if the peer has a given block