MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / getHash

Method getHash

sqlchain/observer/api.go:660–663  ·  view source on GitHub ↗
(vars map[string]string)

Source from the content-addressed store, hash-verified

658}
659
660func (a *explorerAPI) getHash(vars map[string]string) (h *hash.Hash, err error) {
661 hStr := vars["hash"]
662 return hash.NewHashFromStr(hStr)
663}
664
665func startAPI(service *Service, listenAddr string, version string) (server *http.Server, err error) {
666 statikFS, err := fs.New()

Callers 5

GetAckMethod · 0.95
GetRequestMethod · 0.95
GetResponseMethod · 0.95
GetBlockMethod · 0.95
GetBlockV3Method · 0.95

Calls 1

NewHashFromStrFunction · 0.92

Tested by

no test coverage detected