Feat: Polkadot v1.2. to v1.4 upgrade#437
Conversation
ff18af0 to
2b82078
Compare
ff03d9c to
cee1d9a
Compare
ayushmishra2005
left a comment
There was a problem hiding this comment.
@metricaez @Aideepakchaudhary Please fix the conflicts.
| pub const BondingDuration: sp_staking::EraIndex = 3; | ||
| pub const SlashDeferDuration: sp_staking::EraIndex = 2; | ||
| pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; | ||
| pub const MaxExposurePageSize: u32 = 512; |
There was a problem hiding this comment.
@aie0 Please see my comment here #437 (comment). MaxNominatorRewardedPerValidator was renamed to MaxExposurePageSize as a part of paritytech/polkadot-sdk#1189. Since MaxNominatorRewardedPerValidator was set to 512, so MaxExposurePageSize should be set to 512. There was no recommendation to lower down its value.
I made this change
1731138 to
b78a37e
Compare
|
| GitGuardian id | GitGuardian status | Secret | Commit | Filename | |
|---|---|---|---|---|---|
| 9100662 | Triggered | Generic High Entropy Secret | b78a37e | node/service/chain-specs/example.json | View secret |
🛠 Guidelines to remediate hardcoded secrets
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secret safely. Learn here the best practices.
- Revoke and rotate this secret.
- If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.
To avoid such incidents in the future consider
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.
|
I tried squashing in this PR to convert into single commit. That went wrong unfortunately. Since I had created backup before performing squash, so I just raised new PR #457 from new branch. Closing the PR. |
Description
This PR is upgrading Runtime's and Node's dependencies from Polkadot-SDK release
v1.2.0to1.4.0Notes
Relevant upgrade's notes and comments.
Performed the migration of three FRAME pallets:
pallet_nomination_pools,pallet_staking, andpallet_grandpa, and modified the method of passing the wasm_binary parameter in the chain_spec file.Please validate the following values that we have hardcoded in the code:
Breaking changes:
Kindly refer to the official Polkadot release report for further details: Polkadot v1.4.0
Polkadot release analysis : Polkadot v1.4.0 analysis
Process
spec_verfor bothtestnetandmainnetRuntime.TBDCodebase Upgrade Acceptance Criteria
cargo checkpassescargo testpassescargo buildon-- releaseprofile correctly buildstry-runtimeandruntime-benchmarksfeatures compileblock-productionconfig file generates blocks.Runtime & Node Upgrade Acceptance Criteria
Runtime upgrade works on Zombienet
Node upgrade works on Zombienet
Runtime upgrade works on Chopsticks
Try-runtime passes with no pending migrations
<!--- PR TEMPLATE CONTENT STARTS HERE -->
Types of Changes
Please select the branch type you are merging and fill in the relevant template.
<!--- Check the following box with an x if the following applies: -->
Fix or Feature
<!--- Check the following box with an x if the following applies: -->
Types of Changes
<!--- What types of changes does your code introduce? -->
Migrations and Hooks
<!--- Check the following box with an x if the following applies: -->
on_initializeon_finalizeChecklist for Fix or Feature
<!--- All boxes need to be checked. Follow this checklist before requiring PR review -->
spec_versionhas been incremented.network-relayer's events have been updated according to the blockchain events if applicable.Checklist for Hotfix
<!--- All boxes need to be checked. Follow this checklist before requiring PR review -->
spec_versionhas been incremented.devhas been created.staginghas been created.network-relayer's events have been updated according to the blockchain events if applicable.Checklist for Release
<!--- All boxes need to be checked. Follow this checklist before requiring PR review -->