ValidateAll checks the field values on SyncBlockInfoReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SyncBlockInfoReplyMultiError, or nil if none found.
()
| 178 | // violated, the result is a list of violation errors wrapped in |
| 179 | // SyncBlockInfoReplyMultiError, or nil if none found. |
| 180 | func (m *SyncBlockInfoReply) ValidateAll() error { |
| 181 | return m.validate(true) |
| 182 | } |
| 183 | |
| 184 | func (m *SyncBlockInfoReply) validate(all bool) error { |
| 185 | if m == nil { |