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 MutableTree.SetInitialVersion() #312

Merged
merged 2 commits into from
Aug 26, 2020
Merged

Conversation

erikgrinaker
Copy link
Contributor

Requested in cosmos/cosmos-sdk#7089 (comment).

I didn't add a GetInitialVersion(), since it's not clear whether this should return only the option or the actual initial version that exists in a tree.

It might be cleaner to add GetOptions(), SetOptions(), and UpdateOptions(func (o Options) Options), but we may not want all options to be mutable after construction.

CC @amaurymartiny

Copy link

@amaury1093 amaury1093 left a comment

Choose a reason for hiding this comment

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

lgtm, I believe this will unblock my PR on the cosmos-sdk 👍

@erikgrinaker
Copy link
Contributor Author

I'll need an approval from a grown-up, I'm afraid - the repo is set up like that. @alexanderbez, want to do the honors?

@erikgrinaker erikgrinaker added the S:automerge Automatic merge and/or update Pull requests label Aug 26, 2020
@mergify mergify bot merged commit 9ea987b into master Aug 26, 2020
@mergify mergify bot deleted the erik/set-initial-version branch August 26, 2020 14:47
RavenXce pushed a commit to Switcheo/iavl that referenced this pull request Aug 28, 2020
Requested in cosmos/cosmos-sdk#7089 (comment).

I didn't add a `GetInitialVersion()`, since it's not clear whether this should return only the option or the _actual_ initial version that exists in a tree.

It might be cleaner to add `GetOptions()`, `SetOptions()`, and `UpdateOptions(func (o Options) Options)`, but we may not want all options to be mutable after construction.

CC @amaurymartiny
erikgrinaker added a commit that referenced this pull request Sep 25, 2020
Requested in cosmos/cosmos-sdk#7089 (comment).

I didn't add a `GetInitialVersion()`, since it's not clear whether this should return only the option or the _actual_ initial version that exists in a tree.

It might be cleaner to add `GetOptions()`, `SetOptions()`, and `UpdateOptions(func (o Options) Options)`, but we may not want all options to be mutable after construction.

CC @amaurymartiny
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S:automerge Automatic merge and/or update Pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants