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

sc-chain-spec: deprecated code removed #4410

Merged
merged 11 commits into from
May 27, 2024

Conversation

michalkucharczyk
Copy link
Contributor

@michalkucharczyk michalkucharczyk commented May 8, 2024

This PR removes deprecated code:

  • The RuntimeGenesisConfig generic type parameter in GenericChainSpec struct.
  • ChainSpec::from_genesis method allowing to create chain-spec using closure providing runtime genesis struct
  • GenesisSource::Factory variant together with no longer needed GenesisSource's generic parameter G (which was intended to be a runtime genesis struct).

#[deprecated(
note = "`from_genesis` is planned to be removed in May 2024. Use `builder()` instead."
)]
// deprecated note: Genesis<G>::Runtime + GenesisSource::Factory shall also be removed
pub fn from_genesis<F: Fn() -> G + 'static + Send + Sync>(

@michalkucharczyk michalkucharczyk changed the title sc-chain-spec: deprecated code removed sc-chain-spec: deprecated code removed May 8, 2024
@michalkucharczyk michalkucharczyk added the T0-node This PR/Issue is related to the topic “node”. label May 8, 2024
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable 2/3
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6308712

@michalkucharczyk michalkucharczyk marked this pull request as ready for review May 27, 2024 13:27
@michalkucharczyk michalkucharczyk requested review from a team and removed request for andresilva May 27, 2024 13:28
@michalkucharczyk michalkucharczyk requested a review from a team May 27, 2024 19:15
@michalkucharczyk michalkucharczyk added this pull request to the merge queue May 27, 2024
Merged via the queue into master with commit 2d3a693 May 27, 2024
187 of 188 checks passed
@michalkucharczyk michalkucharczyk deleted the mku-chain-spec-deprecated-code-removed branch May 27, 2024 21:56
ordian added a commit that referenced this pull request May 30, 2024
* master: (93 commits)
  Fix broken windows build (#4636)
  Beefy client generic on aduthority Id (#1816)
  pallet-staking: Put tests behind `cfg(debug_assertions)` (#4620)
  Broker new price adapter (#4521)
  Change `XcmDryRunApi::dry_run_extrinsic` to take a call instead (#4621)
  Update README.md (#4623)
  Publish `chain-spec-builder` (#4518)
  Add omni bencher & chain-spec-builder bins to release (#4557)
  Moves runtime macro out of experimental flag (#4249)
  Filter workspace dependencies in the templates (#4599)
  parachain-inherent: Make `para_id` more prominent (#4555)
  Add metric to measure the time it takes to gather enough assignments (#4587)
  Improve On_demand_assigner events (#4339)
  Conditional `required` checks (#4544)
  [CI] Deny adding git deps (#4572)
  [subsytem-bench] Remove redundant banchmark_name param (#4540)
  Add availability-recovery from systematic chunks (#1644)
  Remove workspace lints from templates (#4598)
  `sc-chain-spec`: deprecated code removed (#4410)
  [subsystem-benchmarks] Add statement-distribution benchmarks (#3863)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants