Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Rework consensus storage crate #10

Merged
merged 17 commits into from
Oct 24, 2023

Conversation

slowli
Copy link
Contributor

@slowli slowli commented Oct 23, 2023

What ❔

  • Extracts storage API into trait(s) and make them async.
  • Introduces buffered storage (i.e., one that schedules sequential block execution).

Why ❔

Part of preparations for the integration with the server codebase.

@slowli slowli marked this pull request as ready for review October 23, 2023 09:11
s.spawn_blocking(|| {
consensus.replica.start_new_view(ctx, &consensus.inner);
Ok(())
})
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: we might want to introduce some syntax sugar for this construction.

brunoffranca
brunoffranca previously approved these changes Oct 23, 2023
Copy link
Member

@brunoffranca brunoffranca left a comment

Choose a reason for hiding this comment

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

Looks good. I only had a couple of minor questions. Also, I would suggest organizing the storage crate a bit differently to make stuff easier to find:

  • Moving all the traits into a traits.rs file.
  • Moving RocksdbStorage and all it's methods/implementations into a rocksdb.rs file.

node/actors/executor/src/main.rs Outdated Show resolved Hide resolved
node/actors/sync_blocks/src/lib.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@pompon0 pompon0 left a comment

Choose a reason for hiding this comment

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

added comments

@slowli slowli merged commit fe38f3d into main Oct 24, 2023
4 checks passed
@slowli slowli deleted the aov-bft-356-rework-consensus-storage-crate branch October 24, 2023 14:47
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