Skip to content
Snippets Groups Projects
  1. Jul 17, 2024
    • Maksym H's avatar
      Update command-fmt.yml (#5054) · a053d2cc
      Maksym H authored
      Add cargo +nightly fmt
      Unverified
      a053d2cc
    • hrls's avatar
      Add 'missing_docs' attribute to dummy package (#4992) · 72030ce3
      hrls authored
      
      We want to add linter to the entire node based on a template. Just like
      `cargo clippy -- --deny missing_docs`. And we have the error (pasted at
      the end).
      The dummy crate is used to test whether the WASM toolchain is installed
      and working as expected. And for some reason this dummy crate included
      as a target for the linter. I added an attribute to pass the check.
      ```
      note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.
      
      Caused by:
        process didn't exit successfully: `/Users/hrls/src/atleta/target/debug/build/atleta-runtime-b15153eff20cbe96/build-script-build` (exit status: 1)
        --- stderr
        Rust WASM target for toolchain stable-aarch64-apple-darwin is not properly installed; please install it!
      
        Further error information:
        ------------------------------------------------------------
           Compiling dummy-crate v1.0.0 (/var/folders/h1/_5gdnk8901n959lc28fwx8400000gn/T/.tmpUQCLaV)
        error: missing documentation for the crate
         --> src/main.rs:1:1
          |
        1 | fn main() {}
          | ^^^^^^^^^^^^
          |
          = note: requested on the command line with `-D missing-docs`
      
        error: could not compile `dummy-crate` (bin "dummy-crate") due to 1 previous error
        ------------------------------------------------------------
      
      
      ```
      
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      Unverified
      72030ce3
    • Bastian Köcher's avatar
      Remove accidentally added files (#5052) · 12f352cc
      Bastian Köcher authored
      Unverified
      12f352cc
    • s0me0ne-unkn0wn's avatar
      Fix landlock presence test (#5037) · b3cabd85
      s0me0ne-unkn0wn authored
      Closes #4951 (hopefully)
      
      @alvicsam can you please check if it passes in the new environment?
      Unverified
      b3cabd85
    • Alexandru Vasile's avatar
      fix: Update libp2p-websocket to v0.42.2 to fix panics (#5040) · b862b181
      Alexandru Vasile authored
      
      This release includes: https://github.com/libp2p/rust-libp2p/pull/5482
      
      Which fixes substrate node crashing with libp2p trace:
      
      ```
       0: sp_panic_handler::set::{{closure}}
         1: std::panicking::rust_panic_with_hook
         2: std::panicking::begin_panic::{{closure}}
         3: std::sys_common::backtrace::__rust_end_short_backtrace
         4: std::panicking::begin_panic
         5: <quicksink::SinkImpl<S,F,T,A,E> as futures_sink::Sink<A>>::poll_ready
         6: <rw_stream_sink::RwStreamSink<S> as futures_io::if_std::AsyncWrite>::poll_write
         7: <libp2p_noise::io::framed::NoiseFramed<T,S> as futures_sink::Sink<&alloc::vec::Vec<u8>>>::poll_ready
         8: <libp2p_noise::io::Output<T> as futures_io::if_std::AsyncWrite>::poll_write
         9: <yamux::frame::io::Io<T> as futures_sink::Sink<yamux::frame::Frame<()>>>::poll_ready
        10: yamux::connection::Connection<T>::poll_next_inbound
        11: <libp2p_yamux::Muxer<C> as libp2p_core::muxing::StreamMuxer>::poll
        12: <libp2p_core::muxing::boxed::Wrap<T> as libp2p_core::muxing::StreamMuxer>::poll
        13: <libp2p_core::muxing::boxed::Wrap<T> as libp2p_core::muxing::StreamMuxer>::poll
        14: libp2p_swarm::connection::pool::task::new_for_established_connection::{{closure}}
        15: <sc_service::task_manager::prometheus_future::PrometheusFuture<T> as core::future::future::Future>::poll
        16: <futures_util::future::select::Select<A,B> as core::future::future::Future>::poll
        17: <tracing_futures::Instrumented<T> as core::future::future::Future>::poll
        18: std::panicking::try
        19: tokio::runtime::task::harness::Harness<T,S>::poll
        20: tokio::runtime::scheduler::multi_thread::worker::Context::run_task
        21: tokio::runtime::scheduler::multi_thread::worker::Context::run
        22: tokio::runtime::context::set_scheduler
        23: tokio::runtime::context::runtime::enter_runtime
        24: tokio::runtime::scheduler::multi_thread::worker::run
        25: tokio::runtime::task::core::Core<T,S>::poll
        26: tokio::runtime::task::harness::Harness<T,S>::poll
        27: std::sys_common::backtrace::__rust_begin_short_backtrace
        28: core::ops::function::FnOnce::call_once{{vtable.shim}}
        29: std::sys::pal::unix::thread::Thread::new::thread_start
        30: <unknown>
        31: <unknown>
      
      
      Thread 'tokio-runtime-worker' panicked at 'SinkImpl::poll_ready called after error.', /home/ubuntu/.cargo/registry/src/index.crates.io-6f17d22bba15001f/quicksink-0.1.2/src/lib.rs:158
      ```
      
      Closes: https://github.com/paritytech/polkadot-sdk/issues/4934
      
      ---------
      
      Signed-off-by: default avatarAlexandru Vasile <alexandru.vasile@parity.io>
      Unverified
      b862b181
    • Sebastian Kunert's avatar
      Do not crash on block gap in `displaced_leaves_after_finalizing` (#4997) · 1b6292bf
      Sebastian Kunert authored
      After the merge of #4922 we saw failing zombienet tests with the
      following error:
      ```
      2024-07-09 10:30:09 Error applying finality to block (0xb9e1d3d9cb2047fe61667e28a0963e0634a7b29781895bc9ca40c898027b4c09, 56685): UnknownBlock: Header was not found in the database: 0x0000000000000000000000000000000000000000000000000000000000000000    
      2024-07-09 10:30:09 GRANDPA voter error: could not complete a round on disk: UnknownBlock: Header was not found in the database: 0x0000000000000000000000000000000000000000000000000000000000000000    
      ```
      
      [Example](https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6662262
      
      )
      
      The crashing situation is warp-sync related. After warp syncing, it can
      happen that there are gaps in block ancestry where we don't have the
      header. At the same time, the genesis hash is in the set of leaves. In
      `displaced_leaves_after_finalizing` we then iterate from the finalized
      block backwards until we hit an unknown block, crashing the node.
      
      This PR makes the detection of displaced branches resilient against
      unknown block in the finalized block chain.
      
      cc @nazar-pc (github won't let me request a review from you)
      
      ---------
      
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      Co-authored-by: command-bot <>
      Unverified
      1b6292bf
    • Egor_P's avatar
      Adjust release flows to use those with the new branch model (#5015) · 73995199
      Egor_P authored
      This PR contains adjustments of the node release pipelines so that it
      will be possible to use those to trigger release actions based on the
      `stable` branch.
      
      Previously the whole pipeline of the flows from [creation of the
      `rc-tag`](https://github.com/paritytech/polkadot-sdk/blob/master/.github/workflows/release-10_rc-automation.yml)
      (v1.15.0-rc1, v1.15.0-rc2, etc) till [the release draft
      creation](https://github.com/paritytech/polkadot-sdk/blob/master/.github/workflows/release-30_publish_release_draft.yml)
      was triggered on push to the node release branch. As we had the node
      release branch and the crates release branch separately, it worked fine.
      
      From now on, as we are switching to the one branch approach, for the
      first iteration I would like to keep things simple to see how the new
      release process will work with both parts (crates and node) made from
      one branch.
      
      Changes made: 
      
      - The first step in the pipeline (rc-tag creation) will be triggered
      manually instead of the push to the branch
      - The tag version will be set manually from the input instead of to be
      taken from the branch name
      - Docker image will be additionally tagged as `stable`
      
      
      
      Closes: https://github.com/paritytech/release-engineering/issues/214
      Unverified
      73995199
    • Alin Dima's avatar
      add elastic scaling MVP guide (#4663) · 0db50926
      Alin Dima authored
      Resolves https://github.com/paritytech/polkadot-sdk/issues/4468
      
      Gives instructions on how to enable elastic scaling MVP to parachain
      teams.
      
      Still a draft because it depends on further changes we make to the
      slot-based collator:
      https://github.com/paritytech/polkadot-sdk/pull/4097
      
      Parachains cannot use this yet because the collator was not released and
      no relay chain network has been configured for elastic scaling yet
      Unverified
      0db50926
  2. Jul 16, 2024
  3. Jul 15, 2024
  4. Jul 12, 2024
  5. Jul 11, 2024
  6. Jul 10, 2024
    • Kian Paimani's avatar
      Explain usage of `<T: Config>` in FRAME storage + Update parachain pallet template (#4941) · 02e50adf
      Kian Paimani authored
      
      Explains one of the annoying parts of FRAME storage that we have seen
      multiple times in PBA everyone gets stuck on.
      
      I have not updated the other two templates for now, and only reflected
      it in the parachain template. That can happen in a follow-up.
      
      - [x] Update possible answers in SE about the same topic.
      
      ---------
      
      Co-authored-by: default avatarSerban Iorga <serban@parity.io>
      Co-authored-by: command-bot <>
      Unverified
      02e50adf
    • James Wilson's avatar
      Expose metadata-hash feature from polkadot crate (#4886) · 9fd7b432
      James Wilson authored
      
      Enabling this feature when building the `polkadot ` crate will lead it
      to being enabled for the builtin westend and rococo runtimes. The result
      of that is that a merkleized metadata hash will be computed (at some
      time cost) in those runtimes, which will allow transactions which
      include a hash via the `CheckMetadataHash` extension to work.
      
      The idea is that this is useful for being able to test/experiment with
      the `CheckMetadataHash` extension against local nodes.
      
      ---------
      
      Co-authored-by: command-bot <>
      Co-authored-by: default avatarBastian Köcher <git@kchr.de>
      Unverified
      9fd7b432
  7. Jul 09, 2024
    • Francisco Aguirre's avatar
      Add `MAX_INSTRUCTIONS_TO_DECODE` to XCMv2 (#4978) · 9403a5d4
      Francisco Aguirre authored
      It was added to v4 and v3 but was missing from v2
      Unverified
      9403a5d4
    • Alin Dima's avatar
      add notices to the implementer's guide docs that changed for elastic scaling (#4983) · 2f0e5a61
      Alin Dima authored
      The update is tracked by:
      https://github.com/paritytech/polkadot-sdk/issues/3699
      
      However, this is not worth doing at this point since it will change in
      the future for phase 2 of the implementation.
      
      Still, it's useful to let people know that the information is not the
      most up to date.
      Unverified
      2f0e5a61
    • Serban Iorga's avatar
      `polkadot-parachain` simplifications and deduplications (#4916) · 01e0fc23
      Serban Iorga authored
      `polkadot-parachain` simplifications and deduplications
      
      Details in the commit messages. Just copy-pasting the last commit
      description since it introduces the biggest changes:
      
      ```
          Implement a more structured way to define a node spec
          
          - use traits instead of bounds for `rpc_ext_builder()`,
            `build_import_queue()`, `start_consensus()`
          - add a `NodeSpec` trait for defining the specifications of a node
          - deduplicate the code related to building a node's components /
            starting a node
      ```
      
      The other changes are much smaller, most of them trivial and are
      isolated in separate commits.
      Unverified
      01e0fc23
    • Radha's avatar
      Update Templates README docs (#4980) · 1e1fd745
      Radha authored
      Some of the commands needed update for seamless "newbie" Polkadot SDK
      templates experience
      Unverified
      1e1fd745
    • Or Grinberg's avatar
      allow clear_origin in safe xcm builder (#4777) · 72dab6d8
      Or Grinberg authored
      
      Fixes #3770 
      
      Added `clear_origin` as an allowed command after commands that load the
      holdings register, in the safe xcm builder.
      
      Checklist
      - [x] My PR includes a detailed description as outlined in the
      "Description" section 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)
      - [x] I have made corresponding changes to the documentation (if
      applicable)
      - [x] I have added tests that prove my fix is effective or that my
      feature works (if applicable)
      
      ---------
      
      Co-authored-by: default avatarFrancisco Aguirre <franciscoaguirreperez@gmail.com>
      Co-authored-by: default avatargupnik <mail.guptanikhil@gmail.com>
      Unverified
      72dab6d8
  8. Jul 08, 2024
  9. Jul 07, 2024
    • Muharem Ismailov's avatar
      Assets: can_decrease/increase for destroying asset is not successful (#3286) · f7dd85d0
      Muharem Ismailov authored
      Functions `can_decrease` and `can_increase` do not return successful
      consequence results for assets undergoing destruction; instead, they
      return the `UnknownAsset` consequence variant.
      
      This update aligns their behavior with similar functions, such as
      `reducible_balance`, `increase_balance`, `decrease_balance`, and `burn`,
      which return an `AssetNotLive` error for assets in the process of being
      destroyed.
      Unverified
      f7dd85d0
Loading