MCPcopy Create free account
hub / github.com/tendermint/tendermint / makeBlockIDRandom

Function makeBlockIDRandom

types/block_test.go:188–196  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

186}
187
188func makeBlockIDRandom() BlockID {
189 var (
190 blockHash = make([]byte, tmhash.Size)
191 partSetHash = make([]byte, tmhash.Size)
192 )
193 rand.Read(blockHash) //nolint: errcheck // ignore errcheck for read
194 rand.Read(partSetHash) //nolint: errcheck // ignore errcheck for read
195 return BlockID{blockHash, PartSetHeader{123, partSetHash}}
196}
197
198func makeBlockID(hash []byte, partSetSize uint32, partSetHash []byte) BlockID {
199 var (

Calls 1

ReadMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…