Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

client: fix justifications migration #8489

Merged
3 commits merged into from
Mar 30, 2021
Merged

Conversation

andresilva
Copy link
Contributor

Justifications were double-encoded previously, we forgot to decode the justification we get from the database when migrating.

Nodes that had already run this migration will need to resync as it would be necessary to detect which justifications are in which format and that was dangerous and not worth it for something that was not released.

@andresilva andresilva added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Mar 30, 2021
@andresilva andresilva requested review from tomaka and octol March 30, 2021 08:52
client/db/src/upgrade.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@octol octol left a comment

Choose a reason for hiding this comment

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

Thanks for fixing :)

@andresilva
Copy link
Contributor Author

bot merge

@ghost
Copy link

ghost commented Mar 30, 2021

Trying merge.

@ghost ghost merged commit 88243c1 into master Mar 30, 2021
@ghost ghost deleted the andre/fix-justifications-migration branch March 30, 2021 11:08
s3krit pushed a commit that referenced this pull request Mar 30, 2021
* client: rename variables

* client: fix justifications migration

* client: fix compilation
ordian added a commit that referenced this pull request Mar 31, 2021
* master: (84 commits)
  Duplicate logging to stdout (#8495)
  Fix sync restart (#8497)
  client: fix justifications migration (#8489)
  helper macro to create storage types on the fly (#8456)
  Make `BlockImport` and `Verifier` async (#8472)
  Get rid of `test-helpers` feature in sc-consensus-babe (#8486)
  Enhancement on Substrate Node Template (#8473)
  Add Social Network (#8065)
  Prepare UI tests for Rust 1.51 & new CI image (#8474)
  Benchmarking pallet-example (#8301)
  Use pathbuf for remote externalities (#8480)
  Bring back the on_finalize weight of staking. (#8463)
  Implement `fungible::*` for Balances (#8454)
  make types within `generate_solution_type` macro explicit (#8447)
  [pallet-staking] Refund unused weight for `payout_stakers` (#8458)
  Use `async_trait` in sc-consensus-slots (#8461)
  Repot frame_support::traits; introduce some new currency stuff (#8435)
  Fix &mut self -> &self in add_known_address (#8468)
  Add NetworkService::add_known_address (#8467)
  Fix companion check (#8464)
  ...
hirschenberger pushed a commit to hirschenberger/substrate that referenced this pull request Apr 14, 2021
* client: rename variables

* client: fix justifications migration

* client: fix compilation
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants