(sm *ShardManager, l1Source Il1Source, lg log.Logger)
| 78 | } |
| 79 | |
| 80 | func NewStorageManager(sm *ShardManager, l1Source Il1Source, lg log.Logger) *StorageManager { |
| 81 | return &StorageManager{ |
| 82 | shardManager: sm, |
| 83 | l1Source: l1Source, |
| 84 | blobMetas: map[uint64][32]byte{}, |
| 85 | lg: lg, |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | func (s *StorageManager) EncodeBlob(blob []byte, blobHash common.Hash, kvIdx, size uint64) []byte { |
| 90 | encodeType, encodeKey := s.getEncodingParams(kvIdx, blobHash) |
no outgoing calls