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

tests and fixes for kvstore iteration #304

Merged
merged 3 commits into from
Dec 21, 2017
Merged

tests and fixes for kvstore iteration #304

merged 3 commits into from
Dec 21, 2017

Conversation

ebuchman
Copy link
Member

@ebuchman ebuchman commented Dec 13, 2017

Still needs a fix for TestCacheKVMergeIterator

EDIT: added comprehensive tests!

@ebuchman ebuchman changed the base branch from sdk2-kvstore to sdk2 December 13, 2017 06:24
@ebuchman ebuchman changed the title wip: tests and fixes for kvstore iteration tests and fixes for kvstore iteration Dec 15, 2017
@@ -189,8 +194,21 @@ func (iter *cacheMergeIterator) skipUntilExistsOrInvalid() {
return
}

// If cache not valid but parent is, return
Copy link
Contributor

Choose a reason for hiding this comment

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

Should move above the above if clause.

// Parent and Cache items exist.
keyP, keyC := iter.parent.Key(), iter.cache.Key()
var keyP, keyC []byte
if iter.parent.Valid() {
Copy link
Contributor

Choose a reason for hiding this comment

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

both parent and cache are valid now so these if conditions are unnecessary.

ebuchman and others added 3 commits December 21, 2017 03:30
* wip: tests and fixes for kvstore iteration
* update for latest tmlibs
* types compiles
* x/coin almost compiles
* x/coin: move things out of the way so it builds
* rebase fixes
* update glide
* add test for ChainDecorators
@jaekwon jaekwon merged commit 6b5f08e into sdk2 Dec 21, 2017
@zramsay zramsay deleted the sdk2-kvstore-tests branch December 21, 2017 11:38
ParthDesai pushed a commit to ChorusOne/cosmos-sdk that referenced this pull request Apr 19, 2021
rootulp referenced this pull request in rootulp/cosmos-sdk Apr 20, 2023
* Bump cosmos sdk to v0.46.11

* chore: use comet pkg instead of tendermint

---------

Co-authored-by: evan-forbes <evan.samuel.forbes@gmail.com>
gibson042 pushed a commit to gibson042/cosmos-sdk that referenced this pull request Apr 12, 2024
Increases the snapshot per item size limit when restoring from state-sync
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