Skip to content
Snippets Groups Projects
  1. Mar 14, 2025
  2. Mar 13, 2025
  3. Mar 12, 2025
  4. Mar 11, 2025
    • Alexandru Vasile's avatar
      network: Make litep2p the default backend in Kusama (#7866) · bcc272a1
      Alexandru Vasile authored
      This PR makes the litep2p backend the default network backend in Kusama.
      
      We performed a gradual rollout in Kusama by asking validators to
      manually switch to litep2p. The rollout went smoothly, with 250
      validators running litep2p without issues. This PR represents the next
      step in testing the backend at scale.
      
      Thanks to everyone who contributed to making this happen! A special
      shoutout to the validators for their prompt support and cooperation :pray:
      
      
      
      While at it, the litep2p release is bumped to the latest 0.9.2, which
      downgrades a spamming log to debug.
      
      
      ### CLI Testing Done
      
      
      ```
      ### Kusama without network backend specified
      RUST_LOG=info ./target/release/polkadot --chain kusama --pruning=1000 --in-peers 50 --out-peers 50 --sync=warp --detailed-log-output
      2025-03-10 14:24:18.503  INFO main sub-libp2p: Running litep2p network backend
      
      ### Kusama with libp2p
      RUST_LOG=info ./target/release/polkadot --chain kusama --pruning=1000 --in-peers 50 --out-peers 50 --sync=warp --detailed-log-output --network-backend libp2p
      INFO main sub-libp2p: Running libp2p network backend
      
      ### Kusama with litep2p
      RUST_LOG=info ./target/release/polkadot --chain kusama --pruning=1000 --in-peers 50 --out-peers 50 --sync=warp --detailed-log-output --network-backend litep2p
      INFO main sub-libp2p: Running litep2p network backend
      
      ### Polkadot without network backend specified
      RUST_LOG=info ./target/release/polkadot --chain polkadot --pruning=1000 --in-peers 50 --out-peers 50 --sync=warp --detailed-log-output
      2025-03-10 14:27:03.762  INFO main sub-libp2p: Running libp2p network backend 
      
       ```
      
      cc @paritytech/networking
      
      ---------
      
      Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
    • Egor_P's avatar
      [Release|CI/CD] Fixes for the promote rc to final flow (#7877) · 544fefac
      Egor_P authored
      This PR contains few fixes for the Promote RC to final flow:
      - Now the `polkadot-preapre-worker` and `polkadot-execute-worker`
      artefacts will be uploaded alongside with the `polakdot` artefact (it
      was missing before)
      - Added missing upload of the deb package 
      - Few typos fixed
      
      Closes: https://github.com/paritytech/release-engineering/issues/241
    • Egor_P's avatar
    • PG Herveou's avatar
      [pallet-revive] Add support for eip1898 block notation (#7848) · fb98291e
      PG Herveou authored
      
      [pallet-revive] Add support for eip1898 block notation
      https://eips.ethereum.org/EIPS/eip-1898
      
      ---------
      
      Co-authored-by: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    • Serban Iorga's avatar
      Fix XCM decoding inconsistencies (#7856) · 2a239206
      Serban Iorga authored
      This PR includes:
      
      - deduplicating some XCM decoding logic
      - making use of `decode_with_depth_limit` consistently for
      `VersionedXcm`
      - some cleanup
    • Sebastian Kunert's avatar
      slot-based-collator: Allow multiple blocks per slot (#7569) · 8ddb0714
      Sebastian Kunert authored
      **Summary:** This PR enables authoring of multiple blocks in one AURA
      slot in the slot-based collator and stabilizes the slot-based collator.
      
      ## CLI Changes
      The flag `--experimental-use-slot-based` is now marked as deprecated. I
      opted to introduce `--authoring slot-based` instead of just removing the
      `experimental` prefix. By introducing the `authoring` variant, we get
      some future-proofing in case we want to introduce further options.
      
      ## Change Description
      With elastic-scaling, we are able to author multiple blocks with a
      single relay-chain parent. In the initial iteration, the interval
      between two blocks was determined by the `slot_duration` of the
      parachain. This PR introduces a more flexible model, where we try to
      author multiple blocks in a single slot if the runtime allows it.
      
      The block authoring loop is largely the same. The
      [`SlotTimer`](https://github.com/paritytech/polkadot-sdk/blob/f1935bd9/cumulus/client/consensus/aura/src/collators/slot_based/slot_timer.rs#L48-L48)
      now lives in a separate module and is updated with the last seen [core
      count](https://github.com/paritytech/polkadot-sdk/blob/f1935bd9
      
      /cumulus/client/consensus/aura/src/collators/slot_based/block_builder_task.rs#L231-L231).
      It will then trigger rounds in the block-building loop based on the core
      count.
      
      This allows some flexibility where elastic-scaling chains can run on a
      single core in quiet times. Previously, running on 1 core with a 3-core
      elastic-scaling chain would result in authors getting skipped because
      the `slot_duration` was too low.
      
      ## Parameter Considerations
      The core logic does not change, so there are a few things to consider:
      - The `ConsensusHook` implementation still determines how many blocks
      are allowed per relay-chain block. So if you add arbitrary cores to an
      async-backing, 6-second parachain, `can_build_upon` in the runtime will
      deny block-building of additional blocks.
      - The `MINIMUM_PERIOD` in the runtime needs to be configured to allow
      enough blocks in the slot. A "classic" configuration of
      `SLOT_DURATION/2` will lead to slot mismatches when running with 3
      cores.
      - We fetch available cores at least once every relay chain block. So if
      a parachain runs with a 12-second slot duration and 1 fixed core, we
      would still author 2 blocks if the parachain runtime allows it.
      
      ---------
      
      Co-authored-by: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarMichal Kucharczyk <1728078+michalkucharczyk@users.noreply.github.com>
      Co-authored-by: default avatarJavier Viola <javier@parity.io>
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
  5. Mar 10, 2025
  6. Mar 07, 2025
  7. Mar 06, 2025
    • thiolliere's avatar
      Improve metadata for `SkipCheckIfFeeless` (#7813) · 9dbcc0e4
      thiolliere authored
      
      If the inner transaction extension used inside `SkipCheckIfFeeless` are
      multiples then the metadata is not correct, it is now fixed.
      
      E.g. if the transaction extension is `SkipCheckIfFeeless::<Runtime,
      (Payment1, Payment2)>` then the metadata was wrong.
      
      ---------
      
      Co-authored-by: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
    • Utkarsh Bhardwaj's avatar
      add poke_deposit extrinsic to pallet-proxy (#7801) · 4f7a9388
      Utkarsh Bhardwaj authored
      
      # Description
      
      * This PR adds a new extrinsic `poke_deposit` to `pallet-proxy`. This
      extrinsic will be used to re-adjust the deposits made in the pallet to
      create a proxy or to create an announcement.
      * Part of #5591 
      
      ## Review Notes
      
      * Added a new extrinsic `poke_deposit` in `pallet-proxy`.
      * This extrinsic checks and adjusts the deposits made for either
      creating a proxy or creating an announcement or both.
      * Added a new event `DepositPoked` to be emitted upon a successful call
      of the extrinsic.
      * Although the immediate use of the extrinsic will be to give back some
      of the deposit after the AH-migration, the extrinsic is written such
      that it can work if the deposit decreases or increases (both).
      * The call to the extrinsic would be `free` if an actual adjustment is
      made to the deposit for creating a proxy or to the deposit for creating
      an announcement or both and `paid` otherwise (when no deposit is
      changed).
      * Added a new enum `DepositKind` to differentiate between proxy deposit
      adjusted and announcement deposit adjusted when emitting events.
      * Added tests to test all scenarios.
      
      ## TO-DOs
      * [ ] Run CI cmd bot to benchmark
      
      ---------
      
      Co-authored-by: default avatarcmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
    • Alexander Samusev's avatar
      cmd-bot: divide workflow into 2 steps (#7711) · 312b5b40
      Alexander Samusev authored
      More details
      [here](https://github.com/paritytech/security/issues/103#issuecomment-2682362253)
      
      cc https://github.com/paritytech/security/issues/103