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

Add already implemented merkledb.View to MerkleDB interface #3593

Merged
merged 1 commit into from
Dec 17, 2024

Conversation

aaronbuchwald
Copy link
Collaborator

This PR adds merkledb.View to the merkledb.MerkleDB interface. This adds the already implemented CommitToDB function to the exported interface.

Downstream code (HyperSDK) uses merkledb.View type to represent the view calculated for an individual block. After committing a view, that view is no longer safe to use and the last committed state is represented directly by the MerkleDB instance. However, this complicates using the existing interface for the "view" of the last accepted block since CommitToDB is not implemented.

@StephenButtolph StephenButtolph added this pull request to the merge queue Dec 17, 2024
@StephenButtolph StephenButtolph added this to the v1.12.1 milestone Dec 17, 2024
Merged via the queue into master with commit b5db964 Dec 17, 2024
23 checks passed
@StephenButtolph StephenButtolph deleted the add-view-to-merkledb-intf branch December 17, 2024 20:06
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.

4 participants