// check that the packet received is valid and contains correct information
check that the packet received is valid and contains correct information
// check that the packet received is valid and contains correct information
func (monitor *Monitor) checkResponseValidity(packet *connection.Packet) bool {
	return packet != nil &&
		packet.Code == connection.HvsResponse &&
		packet.Height == monitor.Height &&
		packet.ID != "" &&
		packet.Hvs != nil &&
		packet.Hvs.IsValid(packet.ID)
}
func ( monitor * Monitor ) checkResponseValidity ( packet * connection . Packet ) bool { return packet != nil && packet . Code == connection . HvsResponse && packet . Height == monitor . Height && packet . ID != " " && packet . Hvs != nil && packet . Hvs . IsValid ( packet . ID ) }
check that the packet received is valid and contains correct information
check that the packet received is valid and contains correct information