MCPcopy Create free account
hub / github.com/CPChain/chain / hasValidID

Method hasValidID

api/rpc/client.go:99–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97}
98
99func (msg *jsonrpcMessage) hasValidID() bool {
100 return len(msg.ID) > 0 && msg.ID[0] != '{' && msg.ID[0] != '['
101}
102
103func (msg *jsonrpcMessage) String() string {
104 b, _ := json.Marshal(msg)

Callers 1

isResponseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected