Skip to content

add MutableTree.SetInitialVersion()#312

Merged
mergify[bot] merged 2 commits into
masterfrom
erik/set-initial-version
Aug 26, 2020
Merged

add MutableTree.SetInitialVersion()#312
mergify[bot] merged 2 commits into
masterfrom
erik/set-initial-version

Conversation

@erikgrinaker

Copy link
Copy Markdown
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

@amaury1093 amaury1093 left a comment

Copy link
Copy Markdown

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
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

3 participants