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

Function generateMetadata

ethstorage/p2p/protocol/sync_test.go:306–313  ·  view source on GitHub ↗
(hash common.Hash)

Source from the content-addressed store, hash-verified

304}
305
306func generateMetadata(hash common.Hash) common.Hash {
307 meta := make([]byte, 32)
308
309 copy(meta[0:ethstorage.HashSizeInContract], hash[0:ethstorage.HashSizeInContract])
310 meta[ethstorage.HashSizeInContract] = meta[ethstorage.HashSizeInContract] | blobEmptyFillingMask
311
312 return common.BytesToHash(meta)
313}
314
315func getNetHost(t *testing.T) host.Host {
316 netw := swarmt.GenSwarm(t)

Callers 3

makeKVStorageFunction · 0.70
TestSync_RequestL2ListFunction · 0.70
TestReadWriteFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected