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

Function mustDecodeBlockHex

protocol/bc/block_test.go:288–295  ·  view source on GitHub ↗
(h string)

Source from the content-addressed store, hash-verified

286}
287
288func mustDecodeBlockHex(h string) *Block {
289 var b Block
290 err := b.UnmarshalText([]byte(h))
291 if err != nil {
292 panic(err)
293 }
294 return &b
295}
296
297func mustDecodeHashPtr(h string) *Hash {
298 var hash Hash

Callers 1

TestSignBlockFunction · 0.85

Calls 1

UnmarshalTextMethod · 0.95

Tested by

no test coverage detected