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

Move state layout to options #1204

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Move state layout to options #1204

wants to merge 1 commit into from

Conversation

joshua-kim
Copy link
Contributor

No description provided.

@@ -158,6 +165,9 @@ func New(
// Set defaults
vm.builder = builder.NewTime(vm)
vm.gossiper = txGossiper
vm.heightKey = []byte("height")
vm.timestampKey = []byte("timestamp")
vm.feeKey = []byte("fee")
Copy link
Contributor Author

@joshua-kim joshua-kim Jul 26, 2024

Choose a reason for hiding this comment

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

todo we might introduce hypersdk keys that conflict w/ the controller's keys so it would be good to have a way to detect conflicts in the implementation side during initialization

Copy link
Collaborator

Choose a reason for hiding this comment

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

Alternatively, we could make the default to prefix the HyperSDK metadata and have a separate prefix for standard VM implementations portion of state.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another idea is to have an entirely separate state db for hypersdk defined state vs for state the controller defines

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.

2 participants