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