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

Method getEncodingParams

ethstorage/storage_manager.go:99–105  ·  view source on GitHub ↗
(kvIdx uint64, blobHash common.Hash)

Source from the content-addressed store, hash-verified

97}
98
99func (s *StorageManager) getEncodingParams(kvIdx uint64, blobHash common.Hash) (uint64, common.Hash) {
100 shardIdx := kvIdx >> s.KvEntriesBits()
101 encodeType, _ := s.GetShardEncodeType(shardIdx)
102 miner, _ := s.GetShardMiner(shardIdx)
103 encodeKey := CalcEncodeKey(blobHash, kvIdx, miner)
104 return encodeType, encodeKey
105}
106
107// DownloadFinished This function will be called when the node found new block are finalized, and it will update the
108// local L1 view and commit new blobs into local storage file.

Callers 2

EncodeBlobMethod · 0.95
DecodeBlobMethod · 0.95

Calls 4

KvEntriesBitsMethod · 0.95
GetShardEncodeTypeMethod · 0.95
GetShardMinerMethod · 0.95
CalcEncodeKeyFunction · 0.85

Tested by

no test coverage detected