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

Polkadot v0.9.29 #977

Closed
wants to merge 41 commits into from
Closed

Polkadot v0.9.29 #977

wants to merge 41 commits into from

Conversation

gruberb
Copy link
Contributor

@gruberb gruberb commented Sep 19, 2022

Description

Upgrading centrifuge-chain to the latest Polkadot version, v0.9.29

Fixes #976

Changes and Descriptions

This change also includes the upgrade to v0.9.28: https://github.com/paritytech/polkadot/releases/tag/v0.9.28

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • [] Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • cargo build --release
  • cargo test --workspace --release --features test-benchmarks,try-runtime,runtime-benchmarks

Checklist:

  • I have added Rust doc comments to structs, enums, traits and functions
  • I have made corresponding changes to the documentation
  • I have performed a self-review of my code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules
  • I rebased on the latest parachain branch

@gruberb gruberb added Q0-trivial An issure which is similar to patching code. I6-refactoring Code needs refactoring. crcl-runtime Circle runtime related. crcl-protocol Circle protocol related. dependencies Pull requests that update a dependency file. labels Sep 19, 2022
@@ -185,4 +185,22 @@ impl<T: frame_system::Config> WeightInfo for SubstrateWeight<T> {
.saturating_add(T::DbWeight::get().reads(2 as Weight))
.saturating_add(T::DbWeight::get().writes(1 as Weight))
}

fn buy_item() -> Weight {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need input here how to weigh things or what value is the right one! Currently it's 44_219_000 but need advice on how to weigh functions @branan @mustermeiszer

Copy link
Collaborator

Choose a reason for hiding this comment

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

So buy_item is a new extrinsic from unqiues?

These files here are automatically generated. For making this compilable just put a zero weight. E.g. Weight::from_ref_time(0). We can go through running the benchmarks in the cloud or locally tomorrow. This will then generate the correct values for buy_item

@@ -1016,6 +1016,7 @@ parameter_types! {
pub const PotId: PalletId = cfg_types::ids::STAKE_POT_PALLET_ID;
pub const MaxCandidates: u32 = 1000;
pub const MinCandidates: u32 = 5;
pub const MaxVoters: u32 = 10 * 1000;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Taken from the latest polkadot runtime.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I have to take a look at the collator selection logic and why a voter is needed now. Could you also take a look and maybe see, what voters will do?

@mikiquantum
Copy link
Contributor

@gruberb can we pull the latest v0.9.29 commits of substrate & cumulus?

@gruberb
Copy link
Contributor Author

gruberb commented Sep 23, 2022

@gruberb can we pull the latest v0.9.29 commits of substrate & cumulus?

@mikiquantum Is there a specific commit you have in mind? I re-ran diener and it pulled the same resources as last time! Was there a hotfix we need to incorporate?

@mikiquantum mikiquantum changed the base branch from parachain to main September 23, 2022 22:58
@mikiquantum
Copy link
Contributor

@gruberb The commit on both cumulus & substrate is now at the top 👍 . I can see that the lock file still pulls 0.9.28 versions too, do you know if we could only limit to the latest 0.9.29?

@gruberb
Copy link
Contributor Author

gruberb commented Sep 29, 2022

@gruberb The commit on both cumulus & substrate is now at the top 👍 . I can see that the lock file still pulls 0.9.28 versions too, do you know if we could only limit to the latest 0.9.29?

Yeah, the latest xcm-emulator (git+https://github.com/shaunxw/xcm-simulator?branch=master#6c02911a3eeb04c342e4eb273d2ffbedd45dabff) is still pulling 0.9.28. I am not sure when they usually get updated.

@mikiquantum
Copy link
Contributor

@gruberb ah ok! Yeah there is always a delay, as soon as polkadot is upgraded to that version, hopefully that lib is updated as well. We can keep this open for a bit longer.

@NunoAlexandre NunoAlexandre changed the base branch from main to polkadot-v0.9.29 October 14, 2022 14:27
@mikiquantum
Copy link
Contributor

@gruberb Seems that it has been merged shaunxw/xcm-simulator#38. Is there anything else needed to get this in?

@gruberb
Copy link
Contributor Author

gruberb commented Oct 17, 2022

@gruberb Seems that it has been merged shaunxw/xcm-simulator#38. Is there anything else needed to get this in?

Just updated and re-ran everything. A fresh new >200 places where I have to update weights since the last rebase. So will work on that again today. After these are fixed, there is one thing missing which is some crates pull a different version of getrandom, which seems to break our build. So I have to check this again. Some errors are hidden or occur because of others.

@NunoAlexandre NunoAlexandre changed the base branch from polkadot-v0.9.29 to main October 17, 2022 09:02
@NunoAlexandre
Copy link
Contributor

Superseded by #1041, so we can have multiple of us cooperating on the same branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crcl-protocol Circle protocol related. crcl-runtime Circle runtime related. dependencies Pull requests that update a dependency file. I6-refactoring Code needs refactoring. Q0-trivial An issure which is similar to patching code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to Polkadot v0.9.29
4 participants