Skip to content
  1. Jan 31, 2024
    • Francisco Aguirre's avatar
      Add limits to XCMv4 (#3114) · cc4805b5
      Francisco Aguirre authored
      
      
      Some more work regarding XCMv4. Two limits from v3 were not transferred
      over, those are:
      - The instructions limit
      - The number of assets limit
      Both of these are now in v4.
      
      For some reason `AssetInstance` increased in size, don't know why CI
      didn't catch that before.
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: command-bot <>
      cc4805b5
  2. Jan 30, 2024
  3. Jan 29, 2024
  4. Jan 28, 2024
  5. Jan 26, 2024
  6. Jan 25, 2024
    • Andrei Sandu's avatar
      Add subsystem benchmarks for `availability-distribution` and... · 47e46d17
      Andrei Sandu authored
      
      Add subsystem benchmarks for `availability-distribution` and `biftield-distribution` (availability write) (#2970)
      
      Introduce a new test objective : `DataAvailabilityWrite`.
      
      The new benchmark measures the network and cpu usage of
      `availability-distribution`, `biftield-distribution` and
      `availability-store` subsystems from the perspective of a validator node
      during the process when candidates are made available.
      
      Additionally I refactored the networking emulation to support bandwidth
      acounting and limits of incoming and outgoing requests.
      
      Screenshot of succesful run
      
      
      <img width="1293" alt="Screenshot 2024-01-17 at 19 17 44"
      src="https://github.com/paritytech/polkadot-sdk/assets/54316454/fde11280-e25b-4dc3-9dc9-d4b9752f9b7a">
      
      ---------
      
      Signed-off-by: default avatarAndrei Sandu <[email protected]>
      47e46d17
    • Alexandru Gheorghe's avatar
      approval-distribution: Update topology if authorities are discovered later (#2981) · a6952c74
      Alexandru Gheorghe authored
      
      
      Fixes: https://github.com/paritytech/polkadot-sdk/issues/2138.
      
      Especially on restart AuthorithyDiscovery cache is not populated so we
      create an invalid topology and messages won't be routed correctly for
      the entire session. This PR proposes to try to fix this by updating the
      topology as soon as we now the Authority/PeerId mapping, that should
      impact the situation dramatically.
      
      
      [This issue was hit
      yesterday](https://grafana.teleport.parity.io/goto/o9q2625Sg?orgId=1),
      on Westend and resulted in stalling the finality.
      
      
      # TODO
      
      - [x] Unit tests
      - [x] Test impact on versi
      
      ---------
      
      Signed-off-by: default avatarAlexandru Gheorghe <[email protected]>
      a6952c74
  7. Jan 24, 2024
    • dependabot[bot]'s avatar
      Bump arbitrary from 1.3.0 to 1.3.2 (#3037) · b57e53dc
      dependabot[bot] authored
      
      
      Bumps [arbitrary](https://github.com/rust-fuzz/arbitrary) from 1.3.0 to
      1.3.2.
      <details>
      <summary>Changelog</summary>
      <p><em>Sourced from <a
      href="https://github.com/rust-fuzz/arbitrary/blob/main/CHANGELOG.md">arbitrary's
      changelog</a>.</em></p>
      <blockquote>
      <h2>1.3.2</h2>
      <p>Released 2023-10-30.</p>
      <h3>Added</h3>
      <ul>
      <li>Added <code>Arbitrary</code> implementations for
      <code>Arc&lt;[T]&gt;</code> and
      <code>Rc&lt;[T]&gt;</code>. <a
      href="https://redirect.github.com/rust-fuzz/arbitrary/pull/160">#160</a></li>
      </ul>
      <hr />
      <h2>1.3.1</h2>
      <p>Released 2023-10-11.</p>
      <h3>Fixed</h3>
      <ul>
      <li>Fixed an issue with generating collections of collections in
      <code>arbitrary_take_rest</code> where
      <code>&lt;Vec&lt;Vec&lt;u8&gt;&gt;&gt;::arbitrary_take_rest</code> would
      never
      generate <code>vec![vec![]]</code> for example. See
      <a
      href="https://redirect.github.com/rust-fuzz/arbitrary/pull/159">#159</a>
      for details.</li>
      </ul>
      <hr />
      </blockquote>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/66e75c5bf57275d400d3ebc746e0cee4f6ff9596"><code>66e75c5</code></a>
      Bump to version 1.3.1</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/04054dfa1a0f07b233db0581c2d61615df737ade"><code>04054df</code></a>
      Merge pull request <a
      href="https://redirect.github.com/rust-fuzz/arbitrary/issues/160">#160</a>
      from kpreid/arcslice</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/ef5dff63e4f3079acc6455445f0a8080d4857813"><code>ef5dff6</code></a>
      Implement <code>Arbitrary</code> for <code>Arc\&lt;[A]&gt;</code> and
      <code>Rc\&lt;[A]&gt;</code>.</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/b3e8342ea8dc8437aff3d3a1f5b95b7c02bf57f5"><code>b3e8342</code></a>
      Bump to version 1.3.1</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/c1fa740bb777940bda77a4154d035805b4ecce5b"><code>c1fa740</code></a>
      Merge pull request <a
      href="https://redirect.github.com/rust-fuzz/arbitrary/issues/159">#159</a>
      from fitzgen/arbitrary-take-rest-and-collections-of-c...</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/f19fd7a512fe953e902954d01fe046475d8f01a7"><code>f19fd7a</code></a>
      Add clippy allow for existing code running afoul of new clippy lint</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/27560f182b5f0feb8dbd70791cbadd6fbd622411"><code>27560f1</code></a>
      Fix <code>Unstructured::arbitrary_take_rest_iter</code> for collections
      of collections</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/80d6bfe5e8c864a05ed8c1f0a107bca632ea8c61"><code>80d6bfe</code></a>
      Merge pull request <a
      href="https://redirect.github.com/rust-fuzz/arbitrary/issues/157">#157</a>
      from jyn514/ip-addr</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/7d3364edb6a39554c4b97f0d0548289f001121fe"><code>7d3364e</code></a>
      impl Arbitrary for IpAddr</li>
      <li><a
      href="https://github.com/rust-fuzz/arbitrary/commit/0bdbec8a9fdf19a18e6cb8ffe4022b9a6a588cf2"><code>0bdbec8</code></a>
      Merge pull request <a
      href="https://redirect.github.com/rust-fuzz/arbitrary/issues/151">#151</a>
      from Ekleog-NEAR/patch-2</li>
      <li>Additional commits viewable in <a
      href="https://github.com/rust-fuzz/arbitrary/compare/v1.3.0...v1.3.2">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      
      [![Dependabot compatibility
      score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=arbitrary&package-manager=cargo&previous-version=1.3.0&new-version=1.3.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
      
      Dependabot will resolve any conflicts with this PR as long as you don't
      alter it yourself. You can also trigger a rebase manually by commenting
      `@dependabot rebase`.
      
      [//]: # (dependabot-automerge-start)
      [//]: # (dependabot-automerge-end)
      
      ---
      
      <details>
      <summary>Dependabot commands and options</summary>
      <br />
      
      You can trigger Dependabot actions by commenting on this PR:
      - `@dependabot rebase` will rebase this PR
      - `@dependabot recreate` will recreate this PR, overwriting any edits
      that have been made to it
      - `@dependabot merge` will merge this PR after your CI passes on it
      - `@dependabot squash and merge` will squash and merge this PR after
      your CI passes on it
      - `@dependabot cancel merge` will cancel a previously requested merge
      and block automerging
      - `@dependabot reopen` will reopen this PR if it is closed
      - `@dependabot close` will close this PR and stop Dependabot recreating
      it. You can achieve the same result by closing it manually
      - `@dependabot show <dependency name> ignore conditions` will show all
      of the ignore conditions of the specified dependency
      - `@dependabot ignore <dependency name> major version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's major version (unless you unignore this specific
      dependency's major version or upgrade to it yourself)
      - `@dependabot ignore <dependency name> minor version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's minor version (unless you unignore this specific
      dependency's minor version or upgrade to it yourself)
      - `@dependabot ignore <dependency name>` will close this group update PR
      and stop Dependabot creating any more for the specific dependency
      (unless you unignore this specific dependency or upgrade to it yourself)
      - `@dependabot unignore <dependency name>` will remove all of the ignore
      conditions of the specified dependency
      - `@dependabot unignore <dependency name> <ignore condition>` will
      remove the ignore condition of the specified dependency and ignore
      conditions
      
      
      </details>
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      b57e53dc
    • asynchronous rob's avatar
      statement-dist: activate leaves before unconditional deactivate (#3048) · 5b8abbc8
      asynchronous rob authored
      https://github.com/paritytech/polkadot-sdk/pull/3042/files#r1465115145
      
      ---------
      
      Co-authored-by: command-bot <>
      5b8abbc8
    • Just van Stam's avatar
      Transactional processing for XCM (#1222) · 50eb12cf
      Just van Stam authored
      
      
      Moved from: https://github.com/paritytech/polkadot/pull/6951
      
      closes https://github.com/paritytech/polkadot-sdk/issues/490
      
      - [x] update cumulus
      
      --- 
      This PR introduces transactional processing of certain xcm instructions.
      For the list of instructions checkout
      https://github.com/paritytech/polkadot-sdk/issues/490. The transactional
      processing is implemented as an xcm-executor config item. The two
      implementations in this PR are `FrameTransactionalProcessor` and `()`.
      The `()` implementation does no transactional processing. Each
      implementation of the `ProcessTransaction` trait has an
      `IS_TRANSACTIONAL` const that tells the XCVM if transactional processing
      is actually implemented. If Transactional processing is implemented,
      changes to touched registers should also be rolled back to prevent
      inconsistencies.
      
      
      Note for reviewers:
      Check out the following safety assumption:
      https://github.com/paritytech/polkadot-sdk/pull/1222/files#diff-4effad7d8c1c9de19fd27e18661cbf2128c8718f3b2420a27d2f816e0749ea53R30
      
      ---------
      
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      Co-authored-by: default avatarFrancisco Aguirre <[email protected]>
      Co-authored-by: command-bot <>
      50eb12cf
    • Branislav Kontur's avatar
      Refactor `pallet-state-trie-migration` to `fungible::*` traits (#1801) · 4374b5d5
      Branislav Kontur authored
      
      
      ## Summary
      
      This PR consolidates `pallet-state-trie-migration` as a part of
      https://github.com/paritytech/polkadot-sdk/issues/226 /
      https://github.com/paritytech/polkadot-sdk/issues/171:
      
      `pallet-state-trie-migration`:
      - [x] replace `Currency` with `fungible` traits
      - [x] run benchmarks
      - [x] refactor to `DefaultConfig`
      
      `pallet_nicks`:
      - [x]  remove
      
      others:
      - [x] remove `as Fn*` or `asFun*` stuff based on discussion
      [here](https://github.com/paritytech/polkadot-sdk/issues/226#issuecomment-1822861445)
      
      ---------
      
      Co-authored-by: default avatarRichard Melkonian <[email protected]>
      Co-authored-by: command-bot <>
      4374b5d5
    • Bastian Köcher's avatar
      statement-distribution: Ensure we deactivate leaves before activating (#3042) · a989ddfa
      Bastian Köcher authored
      As activation can fail, we ensure that we don't miss deactivation of
      leaves.
      a989ddfa
    • Sergej Sakac's avatar
      Registrar: Deposit covering max code size (#3020) · 488cbe68
      Sergej Sakac authored
      
      
      This PR implements phase 1 of:
      https://github.com/paritytech/polkadot-sdk/pull/2372#discussion_r1461873933
      
      NOTE: This means that all the current parachains can upgrade their code
      to the maximum size for free.
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      Co-authored-by: default avatarRadha <[email protected]>
      488cbe68
  8. Jan 23, 2024
    • Branislav Kontur's avatar
      Various nits and alignments for testnet runtimes (#3024) · a817d310
      Branislav Kontur authored
      There were several improvements and PRs that didn't apply to all
      runtimes, so this PR attempts to align those small differences. In
      addition, the PR eliminates unused dependencies across multiple modules.
      
      Relates to PR for `polkadot-fellows`:
      https://github.com/polkadot-fellows/runtimes/pull/154
      a817d310
    • Andrei Sandu's avatar
      approval-distribution: aggresion must target unfinalized chain rather than unapproved chain (#2988) · b4dfad83
      Andrei Sandu authored
      
      
      Found the issue while investigating the recent finality stall on Westend
      after upgrading to 1.6.0. Approval distribution aggression is supposed
      to trade off bandwidth and re-send assignemnts/approvals until enough
      approvals are be received by at least 2/3 validators. This is supposed
      to be a catch all mechanism when network connectivity goes south or many
      validators reboot at the same time.
      
      This fix ensures that we always resend approvals starting with the first
      unfinalized block even in the case when it appears approved from the
      node's perspective.
      
      TODO:
      - [x] Versi test
      
      ---------
      
      Signed-off-by: default avatarAndrei Sandu <[email protected]>
      b4dfad83
    • joe petrowski's avatar
    • Niklas Adolfsson's avatar
      rpc: backpressured RPC server (bump jsonrpsee 0.20) (#1313) · e16ef086
      Niklas Adolfsson authored
      This is a rather big change in jsonrpsee, the major things in this bump
      are:
      - Server backpressure (the subscription impls are modified to deal with
      that)
      - Allow custom error types / return types (remove jsonrpsee::core::Error
      and jsonrpee::core::CallError)
      - Bug fixes (graceful shutdown in particular not used by substrate
      anyway)
         - Less dependencies for the clients in particular
         - Return type requires Clone in method call responses
         - Moved to tokio channels
         - Async subscription API (not used in this PR)
      
      Major changes in this PR:
      - The subscriptions are now bounded and if subscription can't keep up
      with the server it is dropped
      - CLI: add parameter to configure the jsonrpc server bounded message
      buffer (default is 64)
      - Add our own subscription helper to deal with the unbounded streams in
      substrate
      
      The most important things in this PR to review is the added helpers
      functions in `substrate/client/rpc/src/utils.rs` and the rest is pretty
      much chore.
      
      Regarding the "bounded buffer limit" it may cause the server to handle
      the JSON-RPC calls
      slower than before.
      
      The message size limit is bounded by "--rpc-response-size" thus "by
      default 10MB * 64 = 640MB"
      but the subscription message size is not covered by this limit and could
      be capped as well.
      
      Hopefully the last release prior to 1.0, sorry in advance for a big PR
      
      Previous attempt: https://github.com/paritytech/substrate/pull/13992
      
      Resolves https://github.com/paritytech/polkadot-sdk/issues/748, resolves
      https://github.com/paritytech/polkadot-sdk/issues/627
      e16ef086
    • Francisco Aguirre's avatar
      Add unit impl for XcmAssetTransfers trait (#3022) · 1417a026
      Francisco Aguirre authored
      If an Executor is required in some pallet's config, a mock might be
      provided where `Executor = ()`. `()` already implements `ExecuteXcm`,
      but not `XcmAssetTransfers`, which is also related. This PR just fixes
      that so you can skip having to create a whole xcm configuration, which
      is non-trivial right now.
      1417a026
  9. Jan 22, 2024
  10. Jan 21, 2024
    • s0me0ne-unkn0wn's avatar
      Make candidate validation bounded again (#2125) · d37a4565
      s0me0ne-unkn0wn authored
      This PR aims to channel the backpressure of the PVF host's preparation
      and execution queues to the candidate validation subsystem consumers.
      
      Related: #708
      d37a4565
    • jserrat's avatar
      Use clone instead of fork on pvf (#2477) · 21ef949b
      jserrat authored
      @mrcnski
      
       Done the change on the prepare worker, once the prepare worker
      part is good I'll do the same for the execute worker.
      
      This is based on
      https://github.com/koute/polkavm/blob/11beebd06276ce9b84f335350138479e714f6caf/crates/polkavm/src/sandbox/linux.rs#L711.
      
      ## TODO
      
      - [x] Add a check for this capability at startup
      - [x] Add prdoc mentioning the new Secure Validator Mode (optional)
      requirement.
      
      ## Related
      
      Closes #2162
      
      ---------
      
      Co-authored-by: default avatarMarcin S <[email protected]>
      21ef949b
  11. Jan 20, 2024
  12. Jan 19, 2024
    • dependabot[bot]'s avatar
      Bump libc from 0.2.149 to 0.2.152 (#2994) · 66b2fa2e
      dependabot[bot] authored
      
      
      Bumps [libc](https://github.com/rust-lang/libc) from 0.2.149 to 0.2.152.
      <details>
      <summary>Release notes</summary>
      <p><em>Sourced from <a
      href="https://github.com/rust-lang/libc/releases">libc's
      releases</a>.</em></p>
      <blockquote>
      <h2>0.2.152</h2>
      <h2>What's Changed</h2>
      <ul>
      <li>openbsd: syscall() has been removed in upcoming OpenBSD 7.5 by <a
      href="https://github.com/semarie"><code>@​semarie</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3479">rust-lang/libc#3479</a></li>
      <li>adding tcp_info to openbsd by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3481">rust-lang/libc#3481</a></li>
      <li>iadding yser_fpxregs_struct data to linux/musl i686. by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3477">rust-lang/libc#3477</a></li>
      <li>strftime* api for *BSD by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3483">rust-lang/libc#3483</a></li>
      <li>strftime_l for Linux glibc/musl by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3484">rust-lang/libc#3484</a></li>
      <li>adding iocb data for io_submit syscall for linux/glibc. by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3486">rust-lang/libc#3486</a></li>
      <li>Re-enable <code>i686-pc-windows-gnu</code> CI by <a
      href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3489">rust-lang/libc#3489</a></li>
      <li>Stop testing on FreeBSD 12 by <a
      href="https://github.com/asomers"><code>@​asomers</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3475">rust-lang/libc#3475</a></li>
      <li>Add <code>ifreq</code>, <code>ifconf</code> and related constants to
      Android by <a
      href="https://github.com/arctic-alpaca"><code>@​arctic-alpaca</code></a>
      in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3487">rust-lang/libc#3487</a></li>
      <li>Add waitid function for OpenBSD by <a
      href="https://github.com/lcheylus"><code>@​lcheylus</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3490">rust-lang/libc#3490</a></li>
      <li>adding SOMAXCONN to redox by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3491">rust-lang/libc#3491</a></li>
      <li>Fix typos in comments by <a
      href="https://github.com/asomers"><code>@​asomers</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3492">rust-lang/libc#3492</a></li>
      <li>fix typos in libc by <a
      href="https://github.com/Takashiidobe"><code>@​Takashiidobe</code></a>
      in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3496">rust-lang/libc#3496</a></li>
      <li>apple adding tcp_connection_info struct by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3482">rust-lang/libc#3482</a></li>
      <li>Improve the version parser of Emscripten by <a
      href="https://github.com/kleisauke"><code>@​kleisauke</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3498">rust-lang/libc#3498</a></li>
      <li>Add constants from <!-- raw HTML omitted --> by <a
      href="https://github.com/GuillaumeGomez"><code>@​GuillaumeGomez</code></a>
      in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3505">rust-lang/libc#3505</a></li>
      <li>Define <code>TFD_TIMER_*</code> constants on FreeBSD. by <a
      href="https://github.com/sunfishcode"><code>@​sunfishcode</code></a> in
      <a
      href="https://redirect.github.com/rust-lang/libc/pull/3506">rust-lang/libc#3506</a></li>
      <li>Add support for posix_spawn on OpenBSD by <a
      href="https://github.com/nuudlman"><code>@​nuudlman</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3502">rust-lang/libc#3502</a></li>
      <li>clock_nanosleep for dragonflybsd, moving constants freebsd only too.
      by <a href="https://github.com/devnexen"><code>@​devnexen</code></a> in
      <a
      href="https://redirect.github.com/rust-lang/libc/pull/3509">rust-lang/libc#3509</a></li>
      <li>solarish add fcntl's O_DIRECT constant. by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3503">rust-lang/libc#3503</a></li>
      <li>Unpin cc dependency version by <a
      href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3511">rust-lang/libc#3511</a></li>
      <li>redox: add openpty, login_tty, TIOCSCTTY, and organize functions by
      <a href="https://github.com/jackpot51"><code>@​jackpot51</code></a> in
      <a
      href="https://redirect.github.com/rust-lang/libc/pull/3512">rust-lang/libc#3512</a></li>
      <li>Move all seccomp consts and structs into top-level mod by <a
      href="https://github.com/boustrophedon"><code>@​boustrophedon</code></a>
      in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3343">rust-lang/libc#3343</a></li>
      <li>freebsd 15 support proposal. by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3508">rust-lang/libc#3508</a></li>
      <li>Prepare workflow for merge queue by <a
      href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3514">rust-lang/libc#3514</a></li>
      <li>Allow dead_code on <code>clockid_t</code> by <a
      href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3516">rust-lang/libc#3516</a></li>
      <li>Add more items from <code>include/linux/sched.h</code> header by <a
      href="https://github.com/GuillaumeGomez"><code>@​GuillaumeGomez</code></a>
      in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3515">rust-lang/libc#3515</a></li>
      <li>fix typo by <a
      href="https://github.com/shuoer86"><code>@​shuoer86</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3517">rust-lang/libc#3517</a></li>
      <li>Add sigsuspend to more targets: bsd, haiku, and solarish by <a
      href="https://github.com/asomers"><code>@​asomers</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3518">rust-lang/libc#3518</a></li>
      <li>Tweak libc-0.2 CI by <a
      href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3519">rust-lang/libc#3519</a></li>
      <li>fuchsia adding pthread_set/getname_np by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3520">rust-lang/libc#3520</a></li>
      <li>Prepare docs for libc v0.3 by <a
      href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3510">rust-lang/libc#3510</a></li>
      <li>Merge main into libc-0.2 by <a
      href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3521">rust-lang/libc#3521</a></li>
      <li>Prepare release for v0.2.152 by <a
      href="https://github.com/JohnTitor"><code>@​JohnTitor</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3522">rust-lang/libc#3522</a></li>
      </ul>
      <h2>New Contributors</h2>
      <ul>
      <li><a
      href="https://github.com/Takashiidobe"><code>@​Takashiidobe</code></a>
      made their first contribution in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3496">rust-lang/libc#3496</a></li>
      <li><a href="https://github.com/nuudlman"><code>@​nuudlman</code></a>
      made their first contribution in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3502">rust-lang/libc#3502</a></li>
      <li><a
      href="https://github.com/boustrophedon"><code>@​boustrophedon</code></a>
      made their first contribution in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3343">rust-lang/libc#3343</a></li>
      <li><a href="https://github.com/shuoer86"><code>@​shuoer86</code></a>
      made their first contribution in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3517">rust-lang/libc#3517</a></li>
      </ul>
      <p><strong>Full Changelog</strong>: <a
      href="https://github.com/rust-lang/libc/compare/0.2.151...0.2.152">https://github.com/rust-lang/libc/compare/0.2.151...0.2.152</a></p>
      <h2>0.2.151</h2>
      <h2>What's Changed</h2>
      <ul>
      <li>Add new constants to be used in (linux) sysctl by <a
      href="https://github.com/GuillaumeGomez"><code>@​GuillaumeGomez</code></a>
      in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3423">rust-lang/libc#3423</a></li>
      <li>openbsd ifreq implementation refinement ifru_data member using
      proper… by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3390">rust-lang/libc#3390</a></li>
      <li>adding reboot to netbsd/openbsd. by <a
      href="https://github.com/devnexen"><code>@​devnexen</code></a> in <a
      href="https://redirect.github.com/rust-lang/libc/pull/3426">rust-lang/libc#3426</a></li>
      </ul>
      <!-- raw HTML omitted -->
      </blockquote>
      <p>... (truncated)</p>
      </details>
      <details>
      <summary>Commits</summary>
      <ul>
      <li><a
      href="https://github.com/rust-lang/libc/commit/3d175191e6c6ad2b97de090d86d28dbfa4d271a3"><code>3d17519</code></a>
      Merge pull request <a
      href="https://redirect.github.com/rust-lang/libc/issues/3522">#3522</a>
      from JohnTitor/libc-0.2.152</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/0f5d2c1d419543819f072169eab72a85abd2e9d2"><code>0f5d2c1</code></a>
      Prepare release for v0.2.152</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/ee500ca0541809005b4ec4c7157add1e170dc545"><code>ee500ca</code></a>
      Merge pull request <a
      href="https://redirect.github.com/rust-lang/libc/issues/3521">#3521</a>
      from rust-lang/main</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/72093f38fbc3c3fec485b0aba6f1ef81ad59ca1e"><code>72093f3</code></a>
      Auto merge of <a
      href="https://redirect.github.com/rust-lang/libc/issues/3510">#3510</a>
      - JohnTitor:prepare-libc-0.3, r=JohnTitor</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/e5612b92d30668eea24495a2d6d84ed1f601f437"><code>e5612b9</code></a>
      Auto merge of <a
      href="https://redirect.github.com/rust-lang/libc/issues/3520">#3520</a>
      - devnexen:fuchsia_upd, r=JohnTitor</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/44ba265df55df13b37a3e1e2145053b68196074d"><code>44ba265</code></a>
      fuchsia adding pthread_set/getname_np</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/2f93bfb7678e18a9fc5373dec49384bd23f601c3"><code>2f93bfb</code></a>
      Auto merge of <a
      href="https://redirect.github.com/rust-lang/libc/issues/3519">#3519</a>
      - JohnTitor:tweak-libc-0.2-ci, r=JohnTitor</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/11f7c7b89d9bfe8c53dcca7571c4965fa3375aab"><code>11f7c7b</code></a>
      Auto merge of <a
      href="https://redirect.github.com/rust-lang/libc/issues/3518">#3518</a>
      - asomers:more-sigsuspend, r=JohnTitor</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/0b9596b22c59cd97409c017cc4dc0620e15bd87c"><code>0b9596b</code></a>
      Tweak libc-0.2 CI</li>
      <li><a
      href="https://github.com/rust-lang/libc/commit/5594447694db909c1ad8fa191a8ac0df734cdd23"><code>5594447</code></a>
      Auto merge of <a
      href="https://redirect.github.com/rust-lang/libc/issues/3517">#3517</a>
      - shuoer86:main, r=JohnTitor</li>
      <li>Additional commits viewable in <a
      href="https://github.com/rust-lang/libc/compare/0.2.149...0.2.152">compare
      view</a></li>
      </ul>
      </details>
      <br />
      
      
      [![Dependabot compatibility
      score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=libc&package-manager=cargo&previous-version=0.2.149&new-version=0.2.152)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)
      
      Dependabot will resolve any conflicts with this PR as long as you don't
      alter it yourself. You can also trigger a rebase manually by commenting
      `@dependabot rebase`.
      
      [//]: # (dependabot-automerge-start)
      [//]: # (dependabot-automerge-end)
      
      ---
      
      <details>
      <summary>Dependabot commands and options</summary>
      <br />
      
      You can trigger Dependabot actions by commenting on this PR:
      - `@dependabot rebase` will rebase this PR
      - `@dependabot recreate` will recreate this PR, overwriting any edits
      that have been made to it
      - `@dependabot merge` will merge this PR after your CI passes on it
      - `@dependabot squash and merge` will squash and merge this PR after
      your CI passes on it
      - `@dependabot cancel merge` will cancel a previously requested merge
      and block automerging
      - `@dependabot reopen` will reopen this PR if it is closed
      - `@dependabot close` will close this PR and stop Dependabot recreating
      it. You can achieve the same result by closing it manually
      - `@dependabot show <dependency name> ignore conditions` will show all
      of the ignore conditions of the specified dependency
      - `@dependabot ignore <dependency name> major version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's major version (unless you unignore this specific
      dependency's major version or upgrade to it yourself)
      - `@dependabot ignore <dependency name> minor version` will close this
      group update PR and stop Dependabot creating any more for the specific
      dependency's minor version (unless you unignore this specific
      dependency's minor version or upgrade to it yourself)
      - `@dependabot ignore <dependency name>` will close this group update PR
      and stop Dependabot creating any more for the specific dependency
      (unless you unignore this specific dependency or upgrade to it yourself)
      - `@dependabot unignore <dependency name>` will remove all of the ignore
      conditions of the specified dependency
      - `@dependabot unignore <dependency name> <ignore condition>` will
      remove the ignore condition of the specified dependency and ignore
      conditions
      
      
      </details>
      
      Signed-off-by: default avatardependabot[bot] <[email protected]>
      Co-authored-by: default avatardependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
      66b2fa2e
    • maksimryndin's avatar
      Pvf thiserror (#2958) · 47a3faa4
      maksimryndin authored
      
      
      resolve #2157 
      
      - [x] fix broken doc links
      - [x] fix codec macro typo
      https://github.com/paritytech/polkadot-sdk/blob/master/polkadot/node/core/pvf/common/src/error.rs#L81
      (see the comment below)
      - [x] refactor `ValidationError`, `PrepareError` and related error types
      to use `thiserror` crate
      
      ## `codec` issue
      
      `codec` macro was mistakenly applied two times to `Kernel` error (so it
      was encoded with 10 instead of 11 and the same as `JobDied`). The PR
      changes it to 11 because
      
      - it was an initial goal of the code author
      - Kernel is less frequent than JobDied so in case of existing error
      encoding it is more probable to have 10 as JobDied than Kernel
      
      See https://github.com/paritytech/parity-scale-codec/issues/555
      
      ----
      polkadot address: 13zCyRG2a1W2ih5SioL8byqmQ6mc8vkgFwQgVzJSdRUUmp46
      
      ---------
      
      Co-authored-by: default avatars0me0ne-unkn0wn <[email protected]>
      47a3faa4