Skip to content
  1. Jan 10, 2023
    • Anthony Alaribe's avatar
      introduce log-target constant to more frame pallets (#13116) · c04e68fd
      Anthony Alaribe authored
      
      
      * introduce log-target constant to more frame pallets
      
      * cargo fmt
      
      * make LOG_TARGET in session public
      
      * Update frame/elections-phragmen/src/lib.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update frame/elections-phragmen/src/migrations/v3.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update frame/elections-phragmen/src/migrations/v3.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update frame/elections-phragmen/src/migrations/v3.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * move LOG_TARGET=runtime::session_historical to migrations module, where it's actually used
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      c04e68fd
    • JP's avatar
      Avoid unintentionally canceling the scheduled crate publishing job (#13088) · 72f086b7
      JP authored
      
      
      * avoid unintentionally canceling the scheduled crate publishing job
      
      because publish-crates and publish-crates-manual share the resource group
      "crates-publishing", any instance of publish-crates-manual cancels a running
      instance of publish-crates, as demonstrated by
      https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2212179
      
      a workaround for that unintended interaction is to avoid creating instances of
      publish-crates-manual and instead require pipelines to be triggered manually by
      checking $CI_JOB_MANUAL == "true"
      
      * check manual pipelines by $CI_PIPELINE_SOURCE instead of $CI_JOB_MANUAL
      
      * make crate-publishing pipelines uninterruptible
      
      * use conditional includes to work around interruptible limitations
      
      * organize comments
      
      * remove interruptible from common pipeline
      
      * wip: check include
      
      * wip: check include
      
      * fix include
      
      * fix include
      
      * fix include
      
      * fix yaml
      
      * fix yaml
      
      * remove shared common-pipeline
      
      * wip: retry common-pipeline
      
      * move .default-template to .gitlab-ci.yml
      
      * fix the pipeline
      
      add comments
      
      * fix default-pipeline.yml
      
      * revert publish-crates-manual to when: manual
      
      * move "needs:" back to publish-crates
      
      * avoid manual repetition
      
      * improve previous commit
      
      * try to avoid manual repetition
      
      * fix indentation
      
      * minor adjustments
      
      * move defaults to top of .gitlab-ci.yml
      
      * fix positioning on default in the diff
      
      * comments
      
      * indentation
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAlexander Samusev <[email protected]>
      
      Co-authored-by: default avatarAlexander Samusev <[email protected]>
      72f086b7
    • alexgparity's avatar
      Add solution hint to error message (#13111) · dcbccbd6
      alexgparity authored
      
      
      * Add solution hint to error message
      
      * make it compile
      
      * Update frame/support/procedural/src/pallet/expand/hooks.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update frame/support/procedural/src/pallet/expand/storage.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update frame/support/procedural/src/pallet/expand/storage.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Update frame/support/procedural/src/pallet/expand/storage.rs
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      dcbccbd6
  2. Jan 09, 2023
  3. Jan 08, 2023
  4. Jan 07, 2023
  5. Jan 06, 2023
  6. Jan 05, 2023
    • Sasha Gryaznov's avatar
      [contracts] Add docs generator for the contracts API to the `#[define_env]` macro (#13032) · 628efddc
      Sasha Gryaznov authored
      
      
      * macro to expand traits for host functions documentation
      
      * other way: same Doc trait in seal modules
      
      * added docs for macro, and remove `doc` attribute
      
      * fmt
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      
      * make docs to be generated into re-exported `api_doc` module; fix
      unrelated elder docs;
      
      * make it compile without `doc` attr passed to macro
      
      * make alias functions indicated explicitly in docs
      
      * tidy up docs
      
      * refactored a bit
      
      * macro to auto-add doc warning for unstable functions
      
      * invoke macro with no doc generation by default
      
      * addressed review comments
      
      * hide api_doc module behind cfg(doc)
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      628efddc
    • Bastian Köcher's avatar
      Kademlia: Speed-up the record fetching (#13081) · 876fccc0
      Bastian Köcher authored
      Before libp2p 0.50.0 we used a quorum of one to fetch records from the DHT. In the pr that upgraded
      to libp2p 0.50.0 we accidentally changed this behavior. This pr brings back the old behavior of
      using a qorum of one and thus, a faster discovery. After finding the first value, we directly finish
      the query. There was also another behavior change in libp2p, they stopped automatic caching on
      remote nodes. This pr also brings back the remote caching on nodes that are nearest to the key from
      our point of view of the network.
      
      The pr that changed the behavior in libp2p: https://github.com/libp2p/rust-libp2p/pull/2712
      876fccc0
    • André Silva's avatar
      37e137e5
    • Bastian Köcher's avatar
      Return `RuntimeVersion` of overwritten/substituted wasm binary (#13066) · 3a68a781
      Bastian Köcher authored
      
      
      * Adds test
      
      * Ensure we are using the runtime version of the override/substitute wasm
      
      * Update client/service/src/client/call_executor.rs
      
      Co-authored-by: default avatarAnton <[email protected]>
      
      Co-authored-by: default avatarAnton <[email protected]>
      3a68a781
    • André Silva's avatar
      grandpa: remove deprecated afg log target (#13064) · 44768ae5
      André Silva authored
      * grandpa: remove deprecated afg log target
      
      * grandpa: define log targets in primitives
      44768ae5
    • Anton's avatar
      upgrade libp2p to 0.50.0 (#12734) · f2dcd952
      Anton authored
      * upgrade libp2p to 0.50.0
      
      * on_swarm_event and on_connection_handler_event
      
      * replace `Swarm::new` with `Swarm::with_threadpool_executor`
      
      * on_swarm_event and on_connection_handler_event part 2
      
      * on_swarm_event and on_connection_handler_event part 3
      
      * on_swarm_event and on_connection_handler_event part 4
      
      * update libp2p
      
      * libp2p 0.50.0
      
      * rename OutboundQueryCompleted to OutboundQueryProgressed
      
      refs https://github.com/libp2p/rust-libp2p/pull/2712
      
      * remove unused var
      
      * accumulate outbound_query_records until query is finished
      
      * format code
      
      * use p_handler instead of new_handler
      
      https://github.com/paritytech/substrate/pull/12734#discussion_r1027640610
      
      * pass ListenFailure to kademlia
      
      https://github.com/paritytech/substrate/pull/12734#discussion_r1034716664
      
      * use tokio executor in tests
      
      https://github.com/paritytech/substrate/pull/12734#discussion_r1039291776
      
      * use chrono Local::now
      
      instead of deprecated Local::today
      
      * remove unused vars from request_responses tests
      
      * attempt to fix pallet UI tests
      
      * restart CI
      
      * restart CI
      
      * restart CI
      
      * restart CI
      
      * restart CI
      
      * restart CI
      
      * restart CI
      
      * restart CI
      f2dcd952
  7. Jan 04, 2023
  8. Jan 03, 2023
  9. Jan 02, 2023
  10. Dec 30, 2022
  11. Dec 29, 2022
  12. Dec 28, 2022