1. Sep 20, 2023
    • Alin Dima's avatar
      Refactor availability-recovery strategies (#1457) · 6f00edbc
      Alin Dima authored
      Refactors availability-recovery strategies to allow for easily adding
      new hotpaths and failover mechanisms.
      
      The new interface allows for chaining multiple `RecoveryStrategy`-es
      together, to cleanly express the relationship between them and share
      state and code where neccessary/possible:
      
      This was done in order to aid in implementing new hotpaths like
      [systematic chunks
      recovery](https://github.com/paritytech/polkadot-sdk/issues/598) and
      [fetching from approval
      checkers](https://github.com/paritytech/polkadot-sdk/issues/575).
      
      Thanks to this design, intermediate state can be shared between the
      strategies. For example, if the systematic chunks recovery retrieved
      less than the needed amount of chunks, pass them over to the next
      FetchChunks strategy, which will only need to recover the remaining
      number of chunks.
      
      Draft example of how a systematic chunk recovery strategy would look:
      https://github.com/paritytech/polkadot-sdk/commit/667d870bdf1470525d66c13929d5eac7249dd995
      (notice how easy it was to add and reuse code)
      
      Note that this PR doesn't itself add any new strategy, it should fully
      preserve backwards compatiblity in terms of functionality. Follow-up PRs
      to add new strategies will come.
      6f00edbc
    • joe petrowski's avatar
      Disable Calls to Identity Pallet (#1476) · 771c3fbd
      joe petrowski authored
      This PR filters calls from the Identity pallet from all Relay Chain
      runtimes as preparation to move the identity state and logic to a system
      parachain within each network.
      
      After this change is deployed to a runtime, no more changes such as
      adding new sub-identities will be possible. The frozen state will be
      part of the genesis state of the system chain. After the system chain
      launches, the pallet and all state will be removed from each Relay
      Chain.
      
      Applications and UIs that render display information from this pallet
      will need to read from the system chain when it launches.
      771c3fbd
  2. Sep 19, 2023
  3. Sep 18, 2023
  4. Sep 17, 2023
  5. Sep 16, 2023
    • joe petrowski's avatar
      Include `bitvec` in `std` for Broker Pallet (#1558) · 11d1a395
      joe petrowski authored
      When adding this pallet to the [Coretime
      Chain](https://github.com/paritytech/polkadot-sdk/pull/1479), this
      dependency results in conflicting implementations (rustc error below).
      This toml change fixes it.
      
      ```
      error: failed to run custom build command for `coretime-rococo-runtime v1.0.0 (/home/joe/parity/polkadot-sdk/cumulus/parachains/runtimes/coretime/coretime-rococo)`
      
      Caused by:
        process didn't exit successfully: `/home/joe/parity/polkadot-sdk/target/debug/build/coretime-rococo-runtime-7943703d2770a119/build-script-build` (exit status: 1)
        --- stdout
        Information that should be included in a bug report.
        Executing build command: RUSTFLAGS="-C target-cpu=mvp -C target-feature=-sign-ext -C link-arg=--export-table -Clink-arg=--export=__heap_base -C link-arg=--import-memory  " SKIP_WASM_BUILD="" "/home/joe/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/cargo" "rustc" "--target=wasm32-unknown-unknown" "--manifest-path=/home/joe/parity/polkadot-sdk/target/debug/wbuild/coretime-rococo-runtime/Cargo.toml" "--color=always" "--profile" "release"
        Using rustc version: rustc 1.71.1 (eb26296b5 2023-08-03)
      
      
        --- stderr
           Compiling sp-io v23.0.0 (/home/joe/parity/polkadot-sdk/substrate/primitives/io)
           Compiling coretime-rococo-runtime v1.0.0 (/home/joe/parity/polkadot-sdk/cumulus/parachains/runtimes/coretime/coretime-rococo)
        error[E0152]: found duplicate lang item `panic_impl`
            --> /home/joe/parity/polkadot-sdk/substrate/primitives/io/src/lib.rs:1749:1
             |
        1749 | pub fn panic(info: &core::panic::PanicInfo) -> ! {
             | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
             |
             = note: the lang item is first defined in crate `std` (which `bitvec` depends on)
             = note: first definition in `std` loaded from /home/joe/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-67dfbacfb4b441ef.rlib
             = note: second definition in the local crate (`sp_io`)
      
        For more information about this error, try `rustc --explain E0152`.
      ```
      11d1a395
  6. Sep 15, 2023
  7. Sep 14, 2023