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

Function mustDecodeHash

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

Source from the content-addressed store, hash-verified

305}
306
307func mustDecodeHash(s string) (h bc.Hash) {
308 err := h.UnmarshalText([]byte(s))
309 if err != nil {
310 panic(err)
311 }
312 return h
313}

Callers 1

TestGenerateBlockFunction · 0.70

Calls 1

UnmarshalTextMethod · 0.45

Tested by

no test coverage detected