Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

feat: besu's bonsai storage layout like primitives #898

Closed
AbdelStark opened this issue Jul 25, 2023 · 2 comments
Closed

feat: besu's bonsai storage layout like primitives #898

AbdelStark opened this issue Jul 25, 2023 · 2 comments
Labels
enhancement New feature or request stale storage

Comments

@AbdelStark
Copy link
Contributor

Investigate and Implement Besu Bonsai-like Storage Layout and Optimization Techniques

Description

The goal of this issue is to investigate and build primitives to implement a storage layout and optimization techniques similar to Besu Bonsai. Unlike other clients that store nodes of the world state by hash, Bonsai stores them by location in the trie. This approach enables natural pruning by replacing old nodes at the same position in the trie with the new ones.

Background

Besu Bonsai's technique ensures that there is only one version of the state at any given time. Consequently, it does not support managing reorganizations (reorgs) as it only maintains a single state. Bonsai addresses this limitation by introducing "trielogs".

Tasks

  1. Research: Understand the Besu Bonsai storage layout and optimization techniques, and how they can be implemented in Madara.
  2. Design: Create a design document detailing how the Besu Bonsai-like storage layout and optimization techniques will be implemented in Madara. This should include any necessary changes to the existing architecture.
  3. Implementation: Implement the design, ensuring that the new storage layout and optimization techniques are fully functional.
  4. Testing: Write comprehensive tests to ensure the new storage layout and optimization techniques work as expected and do not introduce any regressions.
  5. Documentation: Update the project documentation to reflect the new storage layout and optimization techniques.

Acceptance Criteria

  • The Besu Bonsai-like storage layout and optimization techniques are fully implemented.
  • The implementation passes all tests.
  • The project documentation is updated to reflect the new storage layout and optimization techniques.

Resources

@AbdelStark AbdelStark added enhancement New feature or request storage labels Jul 25, 2023
@github-actions
Copy link

There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍
Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions bot added the stale label Aug 25, 2023
@github-project-automation github-project-automation bot moved this to ✅ Done in Madara Jan 27, 2024
@tdelabro
Copy link
Collaborator

@github-actions github-actions bot locked and limited conversation to collaborators Feb 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request stale storage
Projects
Status: Done
Development

No branches or pull requests

2 participants