Skip to content
Snippets Groups Projects
  1. Jan 13, 2025
    • Alexandru Gheorghe's avatar
      Increase the number of pvf execute workers (#7116) · f0eec07f
      Alexandru Gheorghe authored
      
      Reference hardware requirements have been bumped to at least 8 cores so
      we can no allocate 50% of that capacity to PVF execution.
      
      ---------
      
      Signed-off-by: default avatarAlexandru Gheorghe <alexandru.gheorghe@parity.io>
      f0eec07f
    • PG Herveou's avatar
      [pallet-revive] Update gas encoding (#6689) · ba572ae8
      PG Herveou authored
      
      Update the current approach to attach the `ref_time`, `pov` and
      `deposit` parameters to an Ethereum transaction.
      Previously we will pass these 3 parameters along with the signed
      payload, and check that the fees resulting from `gas x gas_price` match
      the actual fees paid by the user for the extrinsic.
      
      This approach unfortunately can be attacked. A malicious actor could
      force such a transaction to fail by injecting low values for some of
      these extra parameters as they are not part of the signed payload.
      
      The new approach encodes these 3 extra parameters in the lower digits of
      the transaction gas, approximating the the log2 of the actual values to
      encode each components on 2 digits
      
      ---------
      
      Co-authored-by: default avatarGitHub Action <action@github.com>
      Co-authored-by: command-bot <>
      ba572ae8
    • Branislav Kontur's avatar
      xcm: Fixes for `UnpaidLocalExporter` (#7126) · 2f7cf417
      Branislav Kontur authored
      ## Description
      
      This PR deprecates `UnpaidLocalExporter` in favor of the new
      `LocalExporter`. First, the name is misleading, as it can be used in
      both paid and unpaid scenarios. Second, it contains a hard-coded channel
      0, whereas `LocalExporter` uses the same algorithm as `xcm-exporter`.
      
      ## Future Improvements  
      
      Remove the `channel` argument and slightly modify the
      `ExportXcm::validate` signature as part of [this
      issue](https://github.com/orgs/paritytech/projects/145/views/8?pane=issue&itemId=84899273).
      
      ---------
      
      Co-authored-by: command-bot <>
      2f7cf417
    • Bastian Köcher's avatar
      reference-docs: Start `state` and mention well known keys (#7037) · 7d8e3a43
      Bastian Köcher authored
      Closes: https://github.com/paritytech/polkadot-sdk/issues/7033
      7d8e3a43
  2. Jan 11, 2025
  3. Jan 10, 2025
  4. Jan 09, 2025
    • Andrei Eres's avatar
      networking-bench: Update benchmarks payload (#7056) · 6bfe4523
      Andrei Eres authored
      # Description
      
      - Used 10 notifications and requests within the benchmarks. After moving
      the network workers' initialization out of the benchmarks, it is
      acceptable to use this small number without losing precision.
      - Removed the 128MB payload that consumed most of the execution time.
      6bfe4523
    • seemantaggarwal's avatar
      Migrating salary pallet to use umbrella crate (#7048) · 2f179585
      seemantaggarwal authored
      # Description
      
      Migrating salary pallet to use umbrella crate. It is a follow-up from
      https://github.com/paritytech/polkadot-sdk/pull/7025
      Why did I create this new branch? 
      I did this, so that the unnecessary cargo fmt changes from the previous
      branch are discarded and hence opened this new PR.
      
      
      
      ## Review Notes
      
      This PR migrates pallet-salary to use the umbrella crate.
      
      Added change: Explanation requested for why `TestExternalities` was
      replaced by `TestState` as testing_prelude already includes it
      `pub use sp_io::TestExternalities as TestState;`
      
      
      I have also modified the defensive! macro to be compatible with umbrella
      crate as it was being used in the salary pallet
      2f179585
    • wmjae's avatar
      fix typo (#7096) · cdf107de
      wmjae authored
      
      Co-authored-by: default avatarDónal Murray <donalm@seadanda.dev>
      cdf107de
  5. Jan 07, 2025
  6. Jan 06, 2025
  7. Jan 05, 2025
    • thiolliere's avatar
      Implement cumulus StorageWeightReclaim as wrapping transaction extension +... · 63c73bf6
      thiolliere authored
      Implement cumulus StorageWeightReclaim as wrapping transaction extension + frame system ReclaimWeight (#6140)
      
      (rebasing of https://github.com/paritytech/polkadot-sdk/pull/5234)
      
      ## Issues:
      
      * Transaction extensions have weights and refund weight. So the
      reclaiming of unused weight must happen last in the transaction
      extension pipeline. Currently it is inside `CheckWeight`.
      * cumulus storage weight reclaim transaction extension misses the proof
      size of logic happening prior to itself.
      
      ## Done:
      
      * a new storage `ExtrinsicWeightReclaimed` in frame-system. Any logic
      which attempts to do some reclaim must use this storage to avoid double
      reclaim.
      * a new function `reclaim_weight` in frame-system pallet: info and post
      info in arguments, read the already reclaimed weight, calculate the new
      unused weight from info and post info. do the more accurate reclaim if
      higher.
      * `CheckWeight` is unchanged and still reclaim the weight in post
      dispatch
      * `ReclaimWeight` is a new transaction extension in frame system. For
      s...
      63c73bf6
  8. Jan 04, 2025
    • thiolliere's avatar
      Make `TransactionExtension` tuple of tuple transparent for implication (#7028) · b5a5ac44
      thiolliere authored
      
      Currently `(A, B, C)` and `((A, B), C)` change the order of implications
      in the transaction extension pipeline. This order is not accessible in
      the metadata, because the metadata is just a vector of transaction
      extension, the nested structure is not visible.
      
      This PR make the implementation for tuple of `TransactionExtension`
      better for tuple of tuple. `(A, B, C)` and `((A, B), C)` don't change
      the implication for the validation A.
      
      This is a breaking change but only when using the trait
      `TransactionExtension` the code implementing the trait is not breaking
      (surprising rust behavior but fine).
      
      ---------
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      b5a5ac44
  9. Jan 03, 2025
  10. Jan 02, 2025
  11. Dec 30, 2024
    • SihanoukSolver29's avatar
      correct path in cumulus README (#7001) · 5abdc5c3
      SihanoukSolver29 authored
      
      # Description
      
      This PR fixes the file path in `cumulus/README.md` so the link to the
      container documentation points to the correct location.
      
      ## Review Notes
      
      The only change are the links in `cumulus/README.md` from
      `./docs/contributor/container.md` to `../docs/contributor/container.md`.
      
      # Checklist
      
      * [x] My PR includes a detailed description as outlined in the
      "Description" and its two subsections above.
      * [x] My PR follows the [labeling requirements](
      
      https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md#Process
      ) of this project (at minimum one label for `T` required)
      * External contributors: ask maintainers to put the right label on your
      PR.
      * [ ] I have made corresponding changes to the documentation (if
      applicable)
      * [ ] I have added tests that prove my fix is effective or that my
      feature works (if applicable)
      
      Co-authored-by: default avatarGuillaume Thiolliere <gui.thiolliere@gmail.com>
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      5abdc5c3
    • Dmitry Markin's avatar
      sync: Send already connected peers to new subscribers (#7011) · b4177a9f
      Dmitry Markin authored
      
      Introduce `SyncEvent::InitialPeers` message sent to new subscribers to
      allow them correctly tracking sync peers. This resolves a race condition
      described in
      https://github.com/paritytech/polkadot-sdk/issues/6573#issuecomment-2563091343.
      
      Fixes https://github.com/paritytech/polkadot-sdk/issues/6573.
      
      ---------
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      b4177a9f
    • Maciej's avatar
      Excluding chainlink domain for link checker CI (#6524) · b6355551
      Maciej authored
      
      Excludes the chainlink domain through a lychee config to fix the
      complaining link checker CI test. Chainlink is gated behind a captcha.
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      Co-authored-by: command-bot <>
      b6355551
Loading