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

Method ReadSampleUnlocked

ethstorage/storage_manager.go:654–659  ·  view source on GitHub ↗
(shardIdx, sampleIdx uint64)

Source from the content-addressed store, hash-verified

652}
653
654func (s *StorageManager) ReadSampleUnlocked(shardIdx, sampleIdx uint64) (common.Hash, error) {
655 if ds, ok := s.shardManager.shardMap[shardIdx]; ok {
656 return ds.ReadSample(sampleIdx)
657 }
658 return common.Hash{}, errors.New("shard not found")
659}
660
661func (s *StorageManager) GetShardMiner(shardIdx uint64) (common.Address, bool) {
662 return s.shardManager.GetShardMiner(shardIdx)

Callers 1

ReadSampleMethod · 0.80

Calls 1

ReadSampleMethod · 0.65

Tested by

no test coverage detected