MCPcopy Create free account
hub / github.com/6boris/web3-template / ValidateAll

Method ValidateAll

api/service/data/chain.pb.validate.go:180–182  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

178// violated, the result is a list of violation errors wrapped in
179// SyncBlockInfoReplyMultiError, or nil if none found.
180func (m *SyncBlockInfoReply) ValidateAll() error {
181 return m.validate(true)
182}
183
184func (m *SyncBlockInfoReply) validate(all bool) error {
185 if m == nil {

Callers 2

validateMethod · 0.45
validateMethod · 0.45

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected