MCPcopy Create free account
hub / github.com/ethstorage/es-node / ToBlockID

Function ToBlockID

ethstorage/eth/block_info.go:43–48  ·  view source on GitHub ↗
(b NumberAndHash)

Source from the content-addressed store, hash-verified

41}
42
43func ToBlockID(b NumberAndHash) BlockID {
44 return BlockID{
45 Hash: b.Hash(),
46 Number: b.NumberU64(),
47 }
48}
49
50// blockInfo is a conversion type of types.Block turning it into a BlockInfo
51type blockInfo struct{ *types.Block }

Callers

nothing calls this directly

Calls 2

HashMethod · 0.65
NumberU64Method · 0.65

Tested by

no test coverage detected