code: func (p *Peer) ProtocolVersion() uint32 {
  	p.flagsMtx.Lock()
  	protocolVersion := p.protocolVersion
  	p.flagsMtx.Unlock()
  
  	return protocolVersion
  }
docs: // ProtocolVersion returns the negotiated peer protocol version.
  //
  // This function is safe for concurrent access.