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

Function runMetaRead

cmd/es-utils/main.go:302–312  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

300}
301
302func runMetaRead(cmd *cobra.Command, args []string) {
303 setupLogger()
304
305 ds := initDataShard()
306
307 b, err := ds.ReadMeta(*kvIdx)
308 if err != nil {
309 log.Crit("Read failed", "error", err)
310 }
311 os.Stdout.Write([]byte(common.Bytes2Hex(b)))
312}
313
314func initDataShard() *es.DataShard {
315 ds := es.NewDataShard(*shardIdx, *kvSize, *kvEntries, *chunkSize)

Callers

nothing calls this directly

Calls 4

setupLoggerFunction · 0.85
initDataShardFunction · 0.85
ReadMetaMethod · 0.45
WriteMethod · 0.45

Tested by

no test coverage detected