Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
99
func
(msg *jsonrpcMessage) hasValidID() bool {
100
return
len(msg.ID) > 0 && msg.ID[0] !=
'{'
&& msg.ID[0] !=
'['
101
}
102
103
func
(msg *jsonrpcMessage) String() string {
104
b, _ := json.Marshal(msg)
Callers
1
isResponse
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected