Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
307
func
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
TestGenerateBlock
Function · 0.70
Calls
1
UnmarshalText
Method · 0.45
Tested by
no test coverage detected