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

[SeiDB] Fix SS apply changeset version off by 1 #424

Merged
merged 2 commits into from
Feb 7, 2024
Merged

Conversation

yzang2019
Copy link
Collaborator

@yzang2019 yzang2019 commented Feb 7, 2024

Describe your changes and provide context

Problem:
When apply changeset to SS store, currently we are using the lastCommitInfo version, which is the previous block height. This means the version is off by 1. The correct way is to use the current block height for the changeset version

Testing performed to validate your change

Will add integration test for this test case

Copy link

codecov bot commented Feb 7, 2024

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (219175b) 54.81% compared to head (c373348) 54.80%.
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #424      +/-   ##
==========================================
- Coverage   54.81%   54.80%   -0.01%     
==========================================
  Files         622      622              
  Lines       52205    52213       +8     
==========================================
  Hits        28615    28615              
- Misses      21506    21514       +8     
  Partials     2084     2084              
Files Coverage Δ
storev2/rootmulti/store.go 3.03% <0.00%> (-0.05%) ⬇️

@yzang2019 yzang2019 merged commit fdc079f into main Feb 7, 2024
14 of 15 checks passed
@yzang2019 yzang2019 deleted the yzang/SEI-6572 branch February 7, 2024 06:18
udpatil pushed a commit that referenced this pull request Feb 9, 2024
## Describe your changes and provide context
Problem:
When apply changeset to SS store, currently we are using the
lastCommitInfo version, which is the previous block height. This means
the version is off by 1. The correct way is to use the current block
height for the changeset version
## Testing performed to validate your change
Will add integration test for this test case
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