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

fix: genesis history bounded storage #642

Merged
merged 5 commits into from
Jul 27, 2023
Merged

Conversation

Roznovjak
Copy link
Contributor

This PR removes without_storage_info from the genesis history pallet and adds a storage migration fixing the corrupted storage value.

@github-actions
Copy link

Crate versions that have been updated:

  • pallet-genesis-history: v2.0.1 -> v2.1.0
  • hydradx-runtime: v167.0.0 -> v168.0.0

Runtime version has been increased.

@codecov
Copy link

codecov bot commented Jul 15, 2023

Codecov Report

Patch coverage: 3.12% and project coverage change: -0.10% ⚠️

Comparison is base (d7917df) 65.09% compared to head (63b0c95) 64.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #642      +/-   ##
==========================================
- Coverage   65.09%   64.99%   -0.10%     
==========================================
  Files         132      133       +1     
  Lines        9697     9711      +14     
==========================================
  Hits         6312     6312              
- Misses       3385     3399      +14     
Files Changed Coverage Δ
pallets/genesis-history/src/migration.rs 0.00% <0.00%> (ø)
runtime/hydradx/src/lib.rs 3.33% <ø> (ø)
runtime/hydradx/src/migrations.rs 0.00% <0.00%> (ø)
pallets/genesis-history/src/lib.rs 50.00% <50.00%> (ø)

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mrq1911 mrq1911 changed the title feat: genesis history bounded storage fix: genesis history bounded storage Jul 25, 2023
weights::Weight,
};

// This migration fixes the corrupted value in the storage and fixes it
Copy link
Contributor

Choose a reason for hiding this comment

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

so the current values are not correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. We manually set the storage value to something, but the storage has different data type.

@apopiak
Copy link
Contributor

apopiak commented Jul 25, 2023

looks fine except that I don't feel I can judge whether the genesis hash migration stuff is correct

@mrq1911 mrq1911 merged commit 1b95179 into master Jul 27, 2023
8 checks passed
@Roznovjak Roznovjak deleted the genesis_history_bounded_storage branch July 28, 2023 08:19
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.

3 participants