Skip to content
  1. May 19, 2024
  2. May 17, 2024
  3. May 16, 2024
  4. May 15, 2024
  5. May 14, 2024
  6. May 13, 2024
    • Éloïs's avatar
      improve MockValidationDataInherentDataProvider to support async backing (#4442) · 594c3ed5
      Éloïs authored
      Support async backing in `--dev` mode
      
      This PR improve the relay mock `MockValidationDataInherentDataProvider`
      to mach expectations of async backing runtimes.
      
      * Add para_head in the mock relay proof
      * Add relay slot in the mock relay proof 
      
      fix https://github.com/paritytech/polkadot-sdk/issues/4437
      594c3ed5
    • Tsvetomir Dimitrov's avatar
      Bump `proc-macro-crate` to the latest version (#4409) · fb7362f6
      Tsvetomir Dimitrov authored
      This PR bumps `proc-macro-crate` to the latest version.
      
      In order to test a runtime from
      https://github.com/polkadot-fellows/runtimes/ with the latest version of
      polkadot-sdk one needs to use `cargo vendor` to extract all runtime
      dependencies, patch them by hand and then build the runtime.
      
      However at the moment 'vendored' builds fail due to
      https://github.com/bkchr/proc-macro-crate/issues/48. To fix this
      `proc-macro-crate` should be updated to version `3.0.1` or higher.
      
      ---------
      
      Co-authored-by: command-bot <>
      fb7362f6
    • Alexander Samusev's avatar
      [ci] Run check-runtime-migration in GHA (#4441) · e973ac9d
      Alexander Samusev authored
      - Moved check-runtime-migration from gitlab to github
      - Moved `test-syscalls` and `cargo-check-all-benches` from gitlab to
      github
      e973ac9d
    • Alin Dima's avatar
      prospective-parachains rework (#4035) · d36da12e
      Alin Dima authored
      Reworks prospective-parachains so that we allow a number of unconnected
      candidates (for which we don't know the parent candidate yet). Needed
      for elastic scaling:
      https://github.com/paritytech/polkadot-sdk/issues/3541. Without this,
      candidate B will not be validated and backed until candidate A (its
      parent) is validated and a backing statement reaches the validator.
      
      Due to the high complexity of the subsystem, I rewrote parts of it so
      that we don't concern ourselves with candidates which form cycles or
      which form parachain forks. We now have "Fragment chains" instead of
      "Fragment trees". This greatly simplifies some of the code and is a
      compromise we can make. We just need to make sure that cycle-producing
      parachains don't brick the relay chain and that fork-producing
      parachains can still make some progress (on one core at least). The only
      forks that are allowed are those on the relay chain, obviously.
      
      Unconnected candidates are kept in the `CandidateStorage` and whenever a
      new candidate is introduced, we try to repopulate the chain with as many
      candidates as we can.
      
      Also fixes https://github.com/paritytech/polkadot-sdk/issues/3219
      
      Guide changes will be done as part of:
      https://github.com/paritytech/polkadot-sdk/issues/3699
      
      
      
      TODOs:
      
      - [x] see if we can replace the `Cow` over the candidate commitments
      with an `Arc` over the entire `ProspectiveCandidate`. It's only being
      overwritten in unit tests. We can work around that.
      - [x] finish fragment_chain unit tests
      - [x] add more prospective-parachains subsystem tests
      - [x] test with zombienet what happens if a parachain is creating cycles
      (it should not brick the relay chain).
      - [x] test with zombienet a parachain that is creating forks. it should
      keep producing blocks from time to time (one bad collator should not DOS
      the parachain, even if throughput decreases)
      - [x] add some more logs and metrics
      - [x] add prdoc and remove the "silent" label
      
      ---------
      
      Signed-off-by: default avatarAndrei Sandu <[email protected]>
      Co-authored-by: default avatarAndrei Sandu <[email protected]>
      d36da12e