Skip to content

storage tile#56

Merged
vladimir-ea merged 5 commits into
mainfrom
ve/storage_tile
May 28, 2026
Merged

storage tile#56
vladimir-ea merged 5 commits into
mainfrom
ve/storage_tile

Conversation

@vladimir-ea
Copy link
Copy Markdown
Collaborator

  • data columns tile -> storage tile
  • persist blocks
  • serves rpc block requests
  • storage is split into pre- and post- finalisation: all blocks and columns are stored pre-finalisation and can be retrieved by chaining on parent-root. for rpc queries the head set by Status is used to pick which chain to use.

TODO:

  • backfilling of data columns and blocks on startup (18 days of columns, 148 days of blocks)
  • load of all post-finalisation blocks for consumption by beacon state tile

Comment thread crates/storage/src/store.rs Outdated
Comment thread crates/storage/src/store.rs Outdated
Comment thread crates/storage/src/store.rs
Comment thread crates/storage/src/store/io.rs
Comment thread crates/storage/src/store/io.rs Outdated
}
PendingWrite::UnfinalizedBlock { slot, parent_root, block_root, ssz } => {
let dir = self.unfinalized_dir();
std::fs::create_dir_all(&dir)?;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does every write create a new dir? If not we could cache this to avoid a syscall?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right, this is not needed - copied form the slot dir one which can create a new dir - will fix

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

@vladimir-ea vladimir-ea merged commit d44550f into main May 28, 2026
2 checks passed
@vladimir-ea vladimir-ea deleted the ve/storage_tile branch May 28, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants