(kvIdx uint64, blobHash common.Hash)
| 97 | } |
| 98 | |
| 99 | func (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. |
no test coverage detected