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

Method Validate

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

Validate checks the field values on SyncBlockInfoReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

()

Source from the content-addressed store, hash-verified

170// defined in the proto definition for this message. If any rules are
171// violated, the first error encountered is returned, or nil if there are no violations.
172func (m *SyncBlockInfoReply) Validate() error {
173 return m.validate(false)
174}
175
176// ValidateAll checks the field values on SyncBlockInfoReply with the rules
177// defined in the proto definition for this message. If any rules are

Callers 2

validateMethod · 0.45
validateMethod · 0.45

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected