Skip to content
Snippets Groups Projects
  1. Nov 27, 2023
    • Javyer's avatar
      Decomissioned PR-Custom-Review (#2503) · 03175017
      Javyer authored
      This PR decomissions
      [`PR-Custom-Review`](https://github.com/paritytech/pr-custom-review) in
      replacement for
      [`Review-bot`](https://github.com/paritytech/review-bot).
      03175017
    • Maciej's avatar
      Zombienet tests - disputes on finalized blocks (#2184) · dc69dbba
      Maciej authored
      
      **Overview:**
      Adding an extra malus variant focusing on disputing finalized blocks. It
      will:
      - wrap around approval-voting
      - listen to `OverseerSignal::BlockFinalized` and when encountered start
      a dispute for the `dispute_offset`th ancestor
      - simply pass through all other messages and signals
      
      Add zombienet tests testing various edgecases:
      - disputing freshly finalized blocks
      - disputing stale finalized blocks
      - disputing eagerly pruned finalized blocks (might be separate PR)
      
      **TODO:**
      - [x] Register new malus variant
      - [x] Simple pass through wrapper (approval-voting)
      - [x] Simple network definition
      - [x] Listen to block finalizations
      - [x] Fetch ancestor hash
      - [x] Fetch session index
      - [x] Fetch candidate
      - [x] Construct and send dispute message
      - [x] zndsl test 1 checking that disputes on fresh finalizations resolve
      valid Closes #1365
      - [x] zndsl test 2 checking that disputes for too old finalized blocks
      are not possible Closes #1364
      - [ ] zndsl test 3 checking that disputes for candidates with eagerly
      pruned relay parent state are handled correctly #1359 (deferred to a
      separate PR)
      - [x] Unit tests for new malus variant (testing cli etc)
      - [x] Clean/streamline error handling
      - [ ] ~~Ensure it tests properly on session boundaries~~
      
      ---------
      
      Co-authored-by: default avatarJavier Viola <javier@parity.io>
      Co-authored-by: default avatarMarcin S. <marcin@realemail.net>
      Co-authored-by: default avatarTsvetomir Dimitrov <tsvetomir@parity.io>
      dc69dbba
    • Chevdor's avatar
      New runtime `spec_version` format + backport of the bump to 1.4.0 (#2468) · 4f8048b9
      Chevdor authored
      
      ## Overview
      
      This PR aligns the `spec_version` formatting to the [recent
      changes](https://github.com/polkadot-fellows/runtimes/pull/26/files#diff-efa4caeb17487ecb13d8f5eb7863c3241d84afa2e73fbf25909a2ca89df0f362R142)
      made for the Polkadot/Kusama runtimes.
      
      It also backports the latest version `v1.4.0` bumps as `1_004_000`.
      
      ## Details
      
      During the switch from `v0.9` to `v1.x`, the format of the
      `spec_version` was modified from: `(M)m_ppp` for a runtime considered on
      version `M.m.pp`. For instance `0.9.42` had a `spec_version` of `9420`.
      
      With the transition to `v1.x`, the format was changed to a bigger number
      (still `u32`) formatted as `MM_mm_ppp` where `1.2.3` would be stored as
      `01_02_003`.
      
      This PR aligns the format with that has been introduced in the
      fellowship repo: `MMM_mmm_ppp`.
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      4f8048b9
  2. Nov 25, 2023
  3. Nov 24, 2023
  4. Nov 23, 2023
  5. Nov 22, 2023
  6. Nov 21, 2023
    • Michal Kucharczyk's avatar
      cumulus-test-service: block import fix (#2430) · 2183669d
      Michal Kucharczyk authored
      This is follow-up for:
      https://github.com/paritytech/polkadot-sdk/pull/2001
      
      Block import queue for `test-parachain` (`cumulus-test-service`) shall
      use delayed best block feature.
      
      This should fixed broken zombienet tests.
      2183669d
    • Sophia Gold's avatar
      Update tick collator for async backing (#1497) · 50811d6b
      Sophia Gold authored
      This updates the tick runtime and polkadot-parachain collator to use
      async backing.
      50811d6b
    • Javyer's avatar
      added action to pass review bot on merge queue (#2414) · f5ad32e4
      Javyer authored
      
      This action will trigger when a merge queue is created and will add a
      positive status check under the `review-bot` account, allowing the PR to
      pass the required check for the merge.
      
      ---------
      
      Co-authored-by: default avatarChevdor <chevdor@users.noreply.github.com>
      f5ad32e4
    • Francisco Aguirre's avatar
      Different XCM builders, default one requires fee payment (#2253) · b3841b6b
      Francisco Aguirre authored
      Adding on top of the new builder pattern for creating XCM programs, I'm
      adding some more APIs:
      
      ```rust
      let paying_fees: Xcm<()> = Xcm::builder() // Only allow paying for fees
        .withdraw_asset() // First instruction has to load the holding register
        .buy_execution() // Second instruction has to be `buy_execution`
        .build();
      
      let paying_fees_invalid: Xcm<()> = Xcm::builder()
        .withdraw_asset()
        .build(); // Invalid, need to pay for fees
      
      let not_paying_fees: Xcm<()> = Xcm::builder_unpaid()
        .unpaid_execution() // Needed
        .withdraw_asset()
        .deposit_asset()
        .build();
      
      let all_goes: Xcm<()> = Xcm::builder_unsafe() // You can do anything
        .withdraw_asset()
        .deposit_asset()
        .build();
      ```
      
      The invalid bits are because the methods don't even exist on the types
      that you'd want to call them on.
      
      ---------
      
      Co-authored-by: command-bot <>
      b3841b6b
    • Michal Kucharczyk's avatar
      cumulus-consensus-common: block import: `delayed_best_block` flag added (#2001) · b25d29a5
      Michal Kucharczyk authored
      This PR adds the `delayed_best_block` flag to `ParachainBlockImport`. If
      not set, the `params.fork_choice` is not updated (to
      `ForkChoiceStrategy::Custom`) during the block import.
      
      When `delayed_best_block` is set to `false` all parachain blocks on the
      [longest
      fork](https://github.com/paritytech/polkadot-sdk/blob/552be480
      
      /substrate/client/service/src/client/client.rs#L708-L709)
      will be notified as the best block, allowing transaction pool to be
      updated with every imported block.
      
      Otherwise imported blocks will not be notified as best blocks
      (`fork_choice=ForkChoiceStrategy::Custom(false)`), and transaction pool
      would be updated only with best block received from relay-chain.
      
      Improvement for: #1202
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      b25d29a5