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

Method Validate

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

Validate checks the field values on SyncBlockInfoRequest 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

39// defined in the proto definition for this message. If any rules are
40// violated, the first error encountered is returned, or nil if there are no violations.
41func (m *SyncBlockInfoRequest) Validate() error {
42 return m.validate(false)
43}
44
45// ValidateAll checks the field values on SyncBlockInfoRequest with the rules
46// defined in the proto definition for this message. If any rules are

Callers

nothing calls this directly

Calls 1

validateMethod · 0.95

Tested by

no test coverage detected