Skip to content
  1. Feb 28, 2024
  2. Nov 14, 2023
    • georgepisaltu's avatar
      Add simple collator election mechanism (#1340) · 7d735fc8
      georgepisaltu authored
      Fixes https://github.com/paritytech/polkadot-sdk/issues/106
      
      Port of cumulus PR https://github.com/paritytech/cumulus/pull/2960
      
      This PR adds the ability to bid for collator slots even after the max
      number of collators have already registered. This eliminates the first
      come, first served mechanism that was in place before.
      
      Key changes:
      - added `update_bond` extrinsic to allow registered candidates to adjust
      their bonds in order to dynamically control their bids
      - added `take_candidate_slot` extrinsic to try to replace an already
      existing candidate by bidding more than them
      - candidates are now kept in a sorted list in the pallet storage, where
      the top `DesiredCandidates` out of `MaxCandidates` candidates in the
      list will be selected by the session pallet as collators
      - if the candidacy bond is increased through a `set_candidacy_bond`
      call, candidates which don't meet the new bond requirements are kicked
      
      
      # Checklist
      
      - [ ] My PR includes a detailed description as outlined in the
      "Description" section above
      - [ ] My PR follows the [labeling
      requirements](https://github.com/paritytech/polkadot-sdk/blob/master/docs/CONTRIBUTING.md#process
      
      )
      of this project (at minimum one label for `T` required)
      - [ ] 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)
      - [ ] If this PR alters any external APIs or interfaces used by
      Polkadot, the corresponding Polkadot PR is ready as well as the
      corresponding Cumulus PR (optional)
      
      ---------
      
      Signed-off-by: default avatargeorgepisaltu <[email protected]>
      7d735fc8
  3. Aug 30, 2023
  4. Aug 23, 2023
    • juangirini's avatar
      Companion: restructure macro related exports (#3015) · 8349c8d1
      juangirini authored
      * restructure macro related exports
      
      * restructure macro related exports
      
      * wip
      
      * wip
      
      * update cargo lock
      
      * refactor RuntimeDebug on unincluded segment
      
      * fmt
      
      * Companion: restructure `benchmarking` macro related exports (#3039)
      
      * wip
      
      * wip
      
      * restructure benchmarking macro related exports
      
      * add cargo lock
      
      ---------
      
      Co-authored-by: parity-processbot <>
      8349c8d1
  5. Jul 13, 2023
    • gupnik's avatar
      Moves `Block` to `frame_system` instead of `construct_runtime` and removes... · 24d6e46a
      gupnik authored
      Moves `Block` to `frame_system` instead of `construct_runtime` and removes `Header` and `BlockNumber` (#2790)
      
      * Fixes
      
      * Removes unused import
      
      * Uses Block and removes BlockNumber/Header from Chain
      
      * Fixes bridges
      
      * Fixes
      
      * Removes unused import
      
      * Fixes build
      
      * Uses correct RelayBlock
      
      * Minor fix
      
      * Fixes glutton-kusama
      
      * Uses correct RelayBlock
      
      * Minor fix
      
      * Fixes benchmark for pallet-bridge-parachains
      
      * Adds appropriate constraints
      
      * Minor fixes
      
      * Removes unused import
      
      * Fixes integrity tests
      
      * Minor fixes
      
      * Updates trait bounds
      
      * Uses custom bound for AsPrimitive
      
      * Fixes trait bounds
      
      * Revert "Fixes trait bounds"
      
      This reverts commit 0b0f42f583f3a616a88afe45fcd06d31e7d9a06f.
      
      * Revert "Uses custom bound for AsPrimitive"
      
      This reverts commit 838e5281adf8b6e9632a2abb9cd550db4ae24126.
      
      * No AsPrimitive trait bound for now
      
      * Removes bounds on Number
      
      * update lockfile for {"substrate", "polkadot"}
      
      * Formatting
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * Minor fix
      
      ---------
      
      Co-authored-by: parity-processbot <>
      24d6e46a
  6. Jul 12, 2023
    • Michal Kucharczyk's avatar
      `GenesisBuild<T,I>` deprecated. `BuildGenesisConfig` added (#2757) · 94d2e4bc
      Michal Kucharczyk authored
      * GenesisBuild<T,I> deprecated. BuildGenesisConfig added
      
      * ".git/.scripts/commands/fmt/fmt.sh"
      
      * integration-tests/emulated: ..Default::default added to genesis configs
      
      * Cargo.lock updated
      
      * Cargo.lock updated
      
      * update lockfile for {"polkadot", "substrate"}
      
      * clippy fixes
      
      * clippy fixes
      
      * clippy fixes again
      
      ---------
      
      Co-authored-by: command-bot <>
      94d2e4bc
  7. Jul 11, 2023
  8. Jul 07, 2023
    • joe petrowski's avatar
      Better Handling of Candidates Who Become Invulnerable (#2801) · 5a813402
      joe petrowski authored
      * remove candidate when to invulnerable
      
      * fix
      
      * candidates to collators
      
      * make parameters consistent and more reasonable
      
      * add call to kick invulnerable candidates
      
      * factor removal into weight
      
      * fix: use accrue instead of add
      
      * make set_invulnerables non-atomic
      
      * benchmark add_invulnerable to account for candidate removal
      
      * don't remove from candidates with set_invulnerables
      
      * fix bounds on benchmarking
      
      * protect against zero min invulnerables underflow
      
      * extra event and tests
      
      * make candidates/invulnerables self-cleaning on session change
      
      * add integrity test
      
      * unused imports
      
      * make rococo-contracts have 1 collator
      5a813402
  9. Jun 14, 2023
  10. May 29, 2023
  11. May 25, 2023
  12. May 06, 2023
  13. Mar 13, 2023
    • Vivek Pandya's avatar
      Remove use of trait Store (#2286) · 9f09109e
      Vivek Pandya authored
      * Remove use of Store trait from xcmp-queue pallet
      
      * Remove Store trait usage from dmp-queue pallet
      
      * Remove Store trait usage from parachain-system pallet
      
      * Remove use of Store trait from cumulus
      
      * Run cargo fmt
      9f09109e
  14. Jan 29, 2023
  15. Dec 20, 2022
  16. Sep 20, 2022
  17. Sep 14, 2022
    • Keith Yeung's avatar
      Companion for paritytech/substrate#12219 (#1610) · 2072bdf7
      Keith Yeung authored
      * Remove CanAuthorWith trait
      
      CanAuthotWith trait removed. Also all dependencies, parameters, type
      paramers were removed. This is related to removal of native runtime.
      
      * Companion for paritytech/substrate#12219
      
      * Fixes
      
      * polkadot-runtime-common updated
      
      cargo update -p polkadot-runtime-common
      
      * warning fixed
      
      * Update cid
      
      * update lockfile for {"polkadot", "substrate"}
      
      * Update substrate
      
      * update lockfile for {"polkadot", "substrate"}
      
      * Update polkadot
      
      * Fix tests
      
      * 🤦
      
      
      
      Co-authored-by: default avatarMichal Kucharczyk <[email protected]>
      Co-authored-by: parity-processbot <>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      2072bdf7
  18. Sep 12, 2022
    • Sergej Sakac's avatar
      Companion for #11981 (#1563) · 68ba7e54
      Sergej Sakac authored
      
      
      * Companion for #11981
      
      * rename
      
      * Event to RuntimeEvent in imports
      
      * missed rename
      
      * undo
      
      * revert
      
      * rename type Call & Event
      
      * commit
      
      * ...
      
      * fix
      
      * fix errors
      
      * fixes
      
      * fmt
      
      * fix imports
      
      * final fix?
      
      * fmt
      
      * fix?
      
      * fixes after merge
      
      * small fix
      
      * cargo update -p polkadot-runtime-common
      
      * cargo +nightly fmt
      
      * update lockfile for {"polkadot", "substrate"}
      
      * fix
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: parity-processbot <>
      68ba7e54
  19. Jun 14, 2022
  20. May 23, 2022
  21. May 17, 2022
  22. Mar 16, 2022
  23. Feb 09, 2022
  24. Feb 07, 2022
  25. Jan 20, 2022
  26. Jan 19, 2022
  27. Sep 16, 2021
    • Chevdor's avatar
      ci: add quick-check with rustfmt (#615) · 6b20f7a2
      Chevdor authored
      
      
      * ci: add quick-check with clippy and rustfmt
      
      * chore: rustfmt round
      
      * chore: set the same rustfmt config than substrate
      
      * chore: fix formatting
      
      * cI: remove clippy
      
      * ci: switch to nightly for the checks
      
      * ci: fix toolchains and naming
      
      * ci: Limit the check to formatting
      
      * chore: fix formatting
      
      * Update .rustfmt.toml
      
      * Update .rustfmt.toml
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      6b20f7a2
    • Andrew Jones's avatar
      Metadata v14 (companion to #3336) (#564) · e3eb3a0a
      Andrew Jones authored
      * Remove event pallet::metadata attributes
      
      * Add scale-info deps, TypeInfo derives, update call variants
      
      * Update metadata runtime APIs
      
      * Add missing scale_info dependency, update rococo runtime API
      
      * Add missing scale_info dependency
      
      * Remove pushed diener patches
      
      * Cargo.lock
      
      * Add missing scale-info dependencies
      
      * Fixes
      
      * Statemint runtime fixes
      
      * Call struct variant empty matches
      
      * Add missing scale-info dependency
      
      * Fixes
      
      * scale-info 1.0
      
      * cargo update -p xcm
      
      * update lock
      
      * Update Cargo.lock
      
      * update to latest polkadot
      
      * remove rpc_http_threads
      
      https://github.com/paritytech/substrate/pull/9737
      
      * replace task executor with tokio handler
      
      https://github.com/paritytech/substrate/pull/9737
      
      
      
      * fix test compilation?
      
      * Update Cargo.lock
      
      * cargo update
      
      * remove unused
      
      * Update substrate and polkadot
      
      * Update test/client/src/lib.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      e3eb3a0a
  28. Jun 22, 2021
  29. Jun 01, 2021
    • Gavin Wood's avatar
      Add Statemint (#452) · eaa9f646
      Gavin Wood authored
      
      
      * Add Statemint
      
      * Versioning.
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Fixes
      
      * Benchmarking
      
      * kick patch (paritytech/statemin#88)
      
      * Westmint Chain Spec (paritytech/statemint#90)
      
      * Tidy the common .toml
      
      * Update weights
      
      * add westmint sudo key comment
      
      * Port consensus stuff
      
      * fix typo
      
      * fix typo ... again
      
      * Recognise Westmint
      
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      eaa9f646