- Jan 09, 2023
-
-
Gonçalo Pestana authored
* EPM and staking events improvement * Uses RawOrigin in ElectionCompute event * Refactors new phase events to PhaseTransition event * PhaseTransitioned and remove RawOrigin from event * Adds helpers for epm phase transition and staking force new * addresses review comments * nit: removes unecessary clone * fixes benchmarks Co-authored-by: parity-processbot <>
-
Sebastian Kunert authored
-
Ankan authored
-
- Jan 08, 2023
-
-
Oliver Tale-Yazdi authored
* Run frame_system integrity tests in Externalities Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Use feature = 'std' Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
- Jan 07, 2023
-
-
Oliver Tale-Yazdi authored
Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
- Jan 06, 2023
-
-
Sebastian Kunert authored
-
André Silva authored
-
Nazar Mokrynskyi authored
Co-authored-by: parity-processbot <>
-
Bastian Köcher authored
-
Falco Hirschenberger authored
* Update trybuild to avoid random test failures. A feature was added to trybuild >1.0.70 avoid failing on different variant counts in the line `and 278 others` fixes #12955 * Update all trybuild deps to latest version * Update Cargo.lock
-
- Jan 05, 2023
-
-
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: Alexander 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: Alexander Theißen <[email protected]>
-
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
-
André Silva authored
-
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: Anton <[email protected]> Co-authored-by: Anton <[email protected]>
-
André Silva authored
* grandpa: remove deprecated afg log target * grandpa: define log targets in primitives
-
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
-
- Jan 04, 2023
-
-
Bastian Köcher authored
* Aura: Do not verify on state import When we import the state, we can not fetch authorities to verify the seal etc. So, we can directly skip any verification. * Skip checks as well for gap sync * Update client/consensus/aura/src/import_queue.rs Co-authored-by: André Silva <[email protected]> * Review comment Co-authored-by: André Silva <[email protected]>
-
Oliver Tale-Yazdi authored
* Remove Copy from EnsureOp and EnsureOpAssign Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove Copy from EnsureFrom and EnsureInto Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix default impl Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Reuse assignment code in Ensure trait Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Require Ensure for all BaseArithmetic types Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix assign impls Co-authored-by: Luis Enrique Muñoz Martín <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add success doc tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
André Silva authored
* grandpa: pass the actual best block to voting rules * grandpa: add test for checking best header is passed to voting rule
-
Oliver Tale-Yazdi authored
* Make try-runtime checks selectable Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update frame/support/src/traits/try_runtime.rs Co-authored-by: Bastian Köcher <[email protected]> * Add Clap wrapper for enum UpgradeCheckSelect Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Revert "Add Clap wrapper for enum UpgradeCheckSelect" This reverts commit e29538c1a79d1711b43addc9400d871f6aa32844. * fix pools sanity check * Set default for --checks to None Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Make --checks backwards comp Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add clap attr comment Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: kianenigma <[email protected]>
-
Jegor Sidorenko authored
-
Jegor Sidorenko authored
* Disallow burning externally locked nfts * Update docs
-
Jegor Sidorenko authored
-
- Jan 03, 2023
-
-
cuteolaf authored
-
Bastian Köcher authored
We don't canonicalize on archive nodes and thus `best_canonical` always returned `None`. So, the moment such a node tried to force canonicalize, it was trapped in some endless loop. This pr solves this by renaming `best_canonical` to `last_canonicalized` and also making the return value more clear by introducing a custom enum `LastCanonicalized`.
-
Liu-Cheng Xu authored
-
Ankan authored
* delete releases * use standard pallet storage version * migrate to standard storage version for staking * not compiling * keep old releases enum around for decoding * fix releases * rename old releases * retriggering ci * fix migration comments * doc update Co-authored-by: parity-processbot <>
-
- Jan 02, 2023
-
-
Sergej Sakac authored
* Check for call_index * fixes * pallet ui test for weight attribute * Update frame/support/procedural/src/pallet/parse/call.rs Co-authored-by: Bastian Köcher <[email protected]> * fix * small fix * wrong return type * ... * . * final fix * update .stderr * commit * udpate * Update frame/support/procedural/src/pallet/parse/call.rs Co-authored-by: Bastian Köcher <[email protected]> * update .stderr Co-authored-by: Bastian Köcher <[email protected]>
-
Michal Kucharczyk authored
* BlockId removal: refactor: BlockBackend::block|block_status It changes the arguments of: - `BlockBackend::block` - `BlockBackend::block_status` method from: `BlockId<Block>` to: `Block::Hash` This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292) * non-obvious reworks * doc fix * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: parity-processbot <>
-
- Dec 30, 2022
-
-
Éloïs authored
* try-runtime: add cli option --export-proof * extract proof in raw json format * fix build * fix(try-runtime execute-block): wrong block parsing * fmt * apply suggestions * Update utils/frame/try-runtime/cli/src/lib.rs Co-authored-by: Anton <[email protected]> * Update utils/frame/try-runtime/cli/src/lib.rs Co-authored-by: Anton <[email protected]> * Update utils/frame/try-runtime/cli/src/lib.rs Co-authored-by: Anton <[email protected]> * Update utils/frame/try-runtime/cli/src/lib.rs Co-authored-by: Anton <[email protected]> * split off external dependencies * fmt * fix try-runtime compilation Co-authored-by: Anton <[email protected]>
-
- Dec 29, 2022
-
-
Vladimir Istyufeev authored
-
Vladimir Istyufeev authored
-
- Dec 28, 2022
-
-
Nazar Mokrynskyi authored
-
Luis Enrique Muñoz Martín authored
* add ensure-ops family methods * fix cargo doc * add EnsureOp and EnsureOpAssign meta traits * move ensure module and ArithmeticError to sp-arithmetic * fix doc examples * reexport ensure module content * ensure mod private * reexport to sp-runtime * fix doc example * remove into(). in doc examples, minor doc changes * remove return value from assign methods * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/arithmetic/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * cargo fmt * Apply suggestions from code review * ".git/.scripts/fmt.sh" 1 Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: command-bot <>
-
Bastian Köcher authored
* Print "stalled" task on shutdown When the node is shutting down, we give the Tokio runtime 60 seconds to shutdown. If after these 60 seconds there are still running tasks, we now print these tasks. This should help debugging nodes that have stalled tasks. This pr introduces a `TaskRegistry` that keeps track of all running tasks. Each task registers and unregisters itself in this `TaskRegistry`. * Fix rustdoc * Update client/service/src/lib.rs
-
- Dec 27, 2022
-
-
Gavin Wood authored
* Improve inactive fund tracking * Resetting migration * Fix * Update frame/balances/src/migration.rs
-
Sasha Gryaznov authored
* make debug buffer work like a FIFO pipe * remove unused Error type * Remove panics * Update frame/contracts/src/exec.rs Co-authored-by: Sasha Gryaznov <[email protected]> Co-authored-by: Alexander Theißen <[email protected]>
-
Dmitry Markin authored
* Fix code review issues * Clarify doc * Get rid of backtrace mutex * kick CI
-
- Dec 26, 2022
-
-
Bastian Köcher authored
* Make CLI state pruning optional again The state pruning setting is stored in the database when it is created. In later runs it is fine to drop the `--state-pruning` CLI argument as the setting is stored in the database. The state db will only return an error if the stored state pruning doesn't match the state pruning given via CLI. Recently we improved the state pruning CLI handling and accidentally made the state pruning value always present (as we set some default value for the clap). If we could find out if a user has passed a value or the default value was taken, we could keep the default value in the CLI interface, but clap isn't supporting this right now. So, we need to go back and make `state_pruning` an optional with the default written into the docs. It also adds a test to ensure that we don't break this behavior again. * More docs
-
Ankan authored
* staking admin can set min commission * ".git/.scripts/bench-bot.sh" pallet dev pallet_staking * fmt * fix for pr comments Co-authored-by: command-bot <>
-