MCPcopy Create free account
hub / github.com/chain/Core / mustDecodeHash

Function mustDecodeHash

protocol/block_test.go:271–277  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

269}
270
271func mustDecodeHash(s string) (h bc.Hash) {
272 err := h.UnmarshalText([]byte(s))
273 if err != nil {
274 panic(err)
275 }
276 return h
277}

Callers 1

TestGenerateBlockFunction · 0.70

Calls 1

UnmarshalTextMethod · 0.45

Tested by

no test coverage detected