ava-labs / ava-labs/Simplex

CachedStorage doesn't cache sequences, only digests

Open
#501 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
22
Forks
4
Avg merge
2d 14h
Merged PRs (30d)
34

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating CachedStorage and tracing its digest-based lookup and the fallback search used when the digest is unknown. Add sequence-based caching so blocks can be returned by sequence without searching storage, then verify both digest and sequence lookups behave correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
distributed-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.