The CachedStorage has a cache by digest. However we sometimes need to access it without knowing the exact digest of the block.
The current implementation simply naively searches in the storage if the expected digest isn't known.
We should additionally cache by sequence and return the blocks by sequences.
The CachedStorage has a cache by digest. However we sometimes need to access it without knowing the exact digest of the block.
The current implementation simply naively searches in the storage if the expected digest isn't known.
We should additionally cache by sequence and return the blocks by sequences.