- Jul 24, 2023
-
-
Aaro Altonen authored
* Accept only `--in-peers` many inbound full nodes in `SyncingEngine` Due to full and light nodes being stored in the same set, it's possible that `SyncingEngine` accepts more than `--in-peers` many inbound full nodes which leaves some of its outbound slots unoccupied. `ProtocolController` still tries to occupy these slots by opening outbound substreams. As these substreams are accepted by the remote peer, the connection is relayed to `SyncingEngine` which rejects the node because it's already full. This in turn results in the substream being inactive and the peer getting evicted. Fixing this properly would require relocating the light peer slot allocation away from `ProtocolController` or alternatively moving entire the substream validation there, both of which are epic refactorings and not necessarily in line with other goals. As a temporary measure, verify in `SyncingEngine` that it doesn't accept more than the specified amount of inbound full peers. * Fix tests * Apply review comments
-
- Jul 23, 2023
-
-
Kian Paimani authored
-
- Jul 21, 2023
-
-
Bastian Köcher authored
* Do some cleanups Found them while looking over the code. * More * Fix
-
Gautham authored
This annoying!
-
Alexandru Vasile authored
* chainHead/events: Add storage params and events Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/tests: Check storage events serialization / deserialization Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/error: Add error for invalid WaitForContinue storage call Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/storage: Use new items params Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/tests: Adjust storage tests to the new API Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/events: Generalize StorageQuery by provided key Signed-off-by: Alexandru Vasile <[email protected]> * chain_head: Add dedicated ChainHeadStorage client for queries Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/storage: Implement queries for hashes of values Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/tests: Check storage queries for hashes of values Signed-off-by: Alexandru Vasile <[email protected]> * chainHead: Improve API documentation wrt multiple entries Signed-off-by: Alexandru Vasile <[email protected]> * chainHead/event: Rename StorageQueue ty to queue_ty Signed-off-by: Alexandru Vasile <[email protected]> * chianHead: Add helper to encode chainHead results as hex str Signed-off-by: Alexandru Vasile <[email protected]> * Update client/rpc-spec-v2/src/chain_head/error.rs Co-authored-by: Sebastian Kunert <[email protected]> * chainHead: Change the `queryResult` to a plain `Result` Signed-off-by: Alexandru Vasile <[email protected]> * chainHead: Stop producing events after the first error Signed-off-by: Alexandru Vasile <[email protected]> * chainHead: Change child_key to child_trie API param Signed-off-by: Alexandru Vasile <[email protected]> --------- Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Sebastian Kunert <[email protected]>
-
Branislav Kontur authored
* Asset conversion `get_pool_id` fix (`Ord` does not count with `is_native` flag) * Removed unnecessery clones + added `pool_account` to `PoolCreated` event * Fix bench compile * Fix bench * Improved `MultiAssetIdConverter::try_convert` * Removed `into_multiasset_id` from converter and moved to `BenchmarkHelper` * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion * Fixed doc * Typo * Removed `NativeOrAssetId` (test/mock) impl from types.rs to mock.rs... * Typo + 0u32 -> 0 * Update frame/asset-conversion/src/benchmarking.rs Co-authored-by: Jegor Sidorenko <[email protected]> * Typo * ".git/.scripts/commands/fmt/fmt.sh" * Fix from Jegor * Try to fix the other failing benchmark * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion * Update frame/asset-conversion/src/lib.rs Co-authored-by: joe petrowski <[email protected]> * Update frame/asset-conversion/src/types.rs Co-authored-by: joe petrowski <[email protected]> * Update frame/transaction-payment/asset-conversion-tx-payment/src/mock.rs Co-authored-by: joe petrowski <[email protected]> * Update frame/asset-conversion/src/mock.rs Co-authored-by: joe petrowski <[email protected]> * Update bin/node/runtime/src/impls.rs Co-authored-by: joe petrowski <[email protected]> * Update frame/asset-conversion/src/lib.rs Co-authored-by: joe petrowski <[email protected]> * Update bin/node/runtime/src/impls.rs Co-authored-by: joe petrowski <[email protected]> * Reverted NativeOrAssetId --------- Co-authored-by: command-bot <> Co-authored-by: Jegor Sidorenko <[email protected]> Co-authored-by: Jegor Sidorenko <[email protected]> Co-authored-by: joe petrowski <[email protected]>
-
PG Herveou authored
* Contracts enable signed extension * Add test * fix * xx * Update frame/contracts/fixtures/sign_extension.wat Co-authored-by: Sasha Gryaznov <[email protected]> * move tests --------- Co-authored-by: Sasha Gryaznov <[email protected]>
-
- Jul 20, 2023
-
-
PG Herveou authored
-
Dmitry Markin authored
-
Michal Kucharczyk authored
* chain-spec-builder: redundant functions removed from main * src/main.rs removed
-
Aaro Altonen authored
Co-authored-by: parity-processbot <>
-
- Jul 19, 2023
-
-
Oliver Tale-Yazdi authored
* Prototype StoragePagedList Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add drain Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove stale docs Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add fuzzer tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Review Co-authored-by: Koute <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fmt Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Docs and clippy Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Sum docs Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Cleanup Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Undo WIP Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add pallet-paged-list Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Move code to pallet Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Move fuzzer Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Cleanup Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fmt Signed-off-by: Oliver Tale-Yazdi <[email protected]> * docs Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Rename Appendix -> Appender Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Rename clear -> delete Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Feature gate testing stuff Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Docs review Co-authored-by: Koute <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Cleanup Signed-off-by: Oliver Tale-Yazdi <[email protected]> * doc review Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Review renames Co-authored-by: Koute <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add docs Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix fuzzer Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Docs + examples Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove hasher Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove empty Event and Call Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove MaxPages Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix docs Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Test eager page removal Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Cleanup Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update frame/paged-list/src/paged_list.rs Co-authored-by: Koute <[email protected]> * Fix docs Co-authored-by: Koute <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove as_*_vec Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update versions Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Rename ValuesPerPage -> ValuesPerNewPage Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update lockfile Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix mock Signed-off-by: Oliver Tale-Yazdi <[email protected]> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Koute <[email protected]> Co-authored-by: parity-processbot <>
-
Kian Paimani authored
* add doc-only substrate entry point crate * document a few more things * add more * fix width * Update primitives/io/src/lib.rs Co-authored-by: Gonçalo Pestana <[email protected]> * add link * update cargo toml file * fix sp-io docs * improve * small update * add license * satisfy license job * add a line about FRAME * CI happy now * make CI more happy * Let the check run for the whole workspace * Forward the substrate node again as default run * update binary names * upate verison test * Fix fix fix * Fix * rename to substrate-node in more places * Revert "rename to substrate-node in more places" This reverts commit 66960f84a1b6f1f7c638b4040e28e9fbabb8adf5. * fix * Fix build pipeline * Fix properly plus add some docs --------- Co-authored-by: Gonçalo Pestana <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
- Jul 18, 2023
-
-
Gonçalo Pestana authored
* Staking e2e test - case when ledger active balance falls below ED * Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs Co-authored-by: Ankan <[email protected]> * Simplifies test assertions; tests events --------- Co-authored-by: Ankan <[email protected]> Co-authored-by: parity-processbot <>
-
Sebastian Kunert authored
* Add ability to reset trie-cache * comment * Update client/db/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> --------- Co-authored-by: Bastian Köcher <[email protected]>
-
Oliver Tale-Yazdi authored
* Rename WeightMeter functions * Fixes Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fixup and doc + tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * One more test Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fixup pallets Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Use correct function
🤦 Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Apply suggestions from code review Co-authored-by: Juan <[email protected]> * Update primitives/weights/src/weight_meter.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/weights/src/weight_meter.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/weights/src/weight_meter.rs --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Juan <[email protected]> Co-authored-by: Bastian Köcher <[email protected]> -
Eugen Snitko authored
-
André Silva authored
* babe: fix report_equivocation weight calculation * grandpa: fix report_equivocation weight calculation * beefy: fix report_equivocation weight calculation * runtime: add missing MaxNominators constant
-
Gonçalo Pestana authored
* Adds onchainify to e2e tests; Adds try-runtime checks at the end of the tests * Refactors OCW to be more realistic and to submit solutions during unsigned phase * Uses config palllet Default impl in mock * Improves OCW progression vode * simplified OCW tests
-
Oliver Tale-Yazdi authored
* Run integrity_test in RO externalities Signed-off-by: Oliver Tale-Yazdi <[email protected]> * frame-support: Export RO externalities Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix bench tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update docs Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Rename to __private Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Run in TestExternalities Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix other pallets Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update docs Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fixes Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update frame/support/src/dispatch.rs Co-authored-by: Muharem Ismailov <[email protected]> * Fixup merge Signed-off-by: Oliver Tale-Yazdi <[email protected]> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: parity-processbot <> Co-authored-by: Muharem Ismailov <[email protected]>
-
Jegor Sidorenko authored
* Handle the AllowMultiAssetPools=false case in benchmarks * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_asset_conversion --------- Co-authored-by: command-bot <>
-
André Silva authored
* client: fix invalid name pattern regex * Update client/cli/src/commands/run_cmd.rs Co-authored-by: Oliver Tale-Yazdi <[email protected]> * client: test node name is non-empty * client: add more tests to is_node_name_valid --------- Co-authored-by: Oliver Tale-Yazdi <[email protected]>
-
- Jul 17, 2023
-
-
Arkadiy Paronyan authored
* Added ECIES encryption * tweaks * fmt * Make clippy happy * Use local keystore * qed
-
André Silva authored
* grandpa: avoid importing unnecessary justifications * grandpa: make justification_import_period configurable * grandpa: keep the first justification * grandpa: add test for justification import period * grandpa: fix test
-
Eugen Snitko authored
-
Kian Paimani authored
* improve pallet hooks docs * Update frame/support/src/traits/hooks.rs Co-authored-by: Sam Johnson <[email protected]> * Update frame/support/src/traits/hooks.rs Co-authored-by: Sam Johnson <[email protected]> * Update frame/support/src/traits/hooks.rs Co-authored-by: Sam Johnson <[email protected]> * fix mastekn removal * Apply suggestions from code review Co-authored-by: Juan <[email protected]> * add diagram * fix all links * fix diagram * improve diagram with some notes * update --------- Co-authored-by: Sam Johnson <[email protected]> Co-authored-by: parity-processbot <> Co-authored-by: Juan <[email protected]>
-
Kian Paimani authored
-
- Jul 14, 2023
-
-
Jacob T Firek authored
* fixing return types in documentation * Apply suggestions from code review --------- Co-authored-by: Bastian Köcher <[email protected]>
-
PG Herveou authored
* add code_len to v12 * fix * Update frame/contracts/src/wasm/mod.rs * fix * fixes * rm test * add test back * fix * update test * Fix comments * fix build * del * fix clippy * fix * re-rename
-
Marijn Schouten authored
* change $location from tt* to ty and remove unnecessary cb_* versions * fmt * ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances --------- Co-authored-by: Liam Aharon <[email protected]> Co-authored-by: parity-processbot <>
-
Vsevolod Stakhov authored
* Remove redundant locks * Re-enable warning for a sender when a queue got processed * Apply suggestions from code review Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Anton <[email protected]> * Use debug for subsequent logging * Update client/network/src/service/out_events.rs Co-authored-by: Bastian Köcher <[email protected]> --------- Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Anton <[email protected]> Co-authored-by: parity-processbot <>
-
Aten Jin authored
-
juangirini authored
* replace Index by Nonce * replace Index by Nonce * replace Index by Nonce * replace Index by Nonce * replace Index by Nonce * wip * remove index in lieu of nonce * wip * remove accountnonce in lieu of nonce * add minor improvement * rebase and merge conflicts
-
Francisco Gamundi authored
* WasmExecutor flag to ignore onchain heappages value * fmt
-
- Jul 13, 2023
-
-
Tonimir Kisasondi authored
Original link in the source code pointed to a dead URL since the original documentation has moved. This pull request updates the URL with the current version.
-
Oliver Tale-Yazdi authored
* Add DeferGuard::new Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Re-add deprecated 'execution' arg to benchmark pallet cmd. Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Extend tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Remove from tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> --------- Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
Jegor Sidorenko authored
* Code refactoring * Fix imports * Typo * Update frame/asset-conversion/src/types.rs Co-authored-by: joe petrowski <[email protected]> * Sync docs --------- Co-authored-by: parity-processbot <> Co-authored-by: joe petrowski <[email protected]>
-
gupnik authored
Moves `Block` to `frame_system` instead of `construct_runtime` and removes `Header` and `BlockNumber` (#14437) * Initial setup * Adds node block * Uses UncheckedExtrinsic and removes Where section * Updates frame_system to use Block * Adds deprecation warning * Fixes pallet-timestamp * Removes Header and BlockNumber * Addresses review comments * Addresses review comments * Adds comment about compiler bug * Removes where clause * Refactors code * Fixes errors in cargo check * Fixes errors in cargo check * Fixes warnings in cargo check * Formatting * Fixes construct_runtime tests * Uses import instead of full path for BlockNumber * Uses import instead of full path for Header * Formatting * Fixes construct_runtime tests * Fixes imports in benchmarks * Formatting * Fixes construct_runtime tests * Formatting * Minor updates * Fixes construct_runtime ui tests * Fixes construct_runtime ui tests with 1.70 * Fixes docs * Fixes docs * Adds u128 mock block type * Fixes split example * fixes for cumulus * ".git/.scripts/commands/fmt/fmt.sh" * Updates new tests * Fixes fully-qualified path in few places * Formatting * Update frame/examples/default-config/src/lib.rs Co-authored-by: Juan <[email protected]> * Update frame/support/procedural/src/construct_runtime/mod.rs Co-authored-by: Juan <[email protected]> * ".git/.scripts/commands/fmt/fmt.sh" * Addresses some review comments * Fixes build * ".git/.scripts/commands/fmt/fmt.sh" * Update frame/democracy/src/lib.rs Co-authored-by: Oliver Tale-Yazdi <[email protected]> * Update frame/democracy/src/lib.rs Co-authored-by: Oliver Tale-Yazdi <[email protected]> * Update frame/support/procedural/src/construct_runtime/mod.rs Co-authored-by: Oliver Tale-Yazdi <[email protected]> * Update frame/support/procedural/src/construct_runtime/mod.rs Co-authored-by: Oliver Tale-Yazdi <[email protected]> * Addresses review comments * Updates trait bounds * Minor fix * ".git/.scripts/commands/fmt/fmt.sh" * Removes unnecessary bound * ".git/.scripts/commands/fmt/fmt.sh" * Updates test * Fixes build * Adds a bound for header * ".git/.scripts/commands/fmt/fmt.sh" * Removes where block * Minor fix * Minor fix * Fixes tests * ".git/.scripts/commands/update-ui/update-ui.sh" 1.70 * Updates test * Update primitives/runtime/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/runtime/src/traits.rs Co-authored-by: Bastian Köcher <[email protected]> * Updates doc * Updates doc --------- Co-authored-by: command-bot <> Co-authored-by: Juan <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
Liam Aharon authored
* fix society v2 migration * Update frame/society/src/migrations.rs * Update frame/society/src/migrations.rs Co-authored-by: Bastian Köcher <[email protected]> * Update frame/society/src/migrations.rs Co-authored-by: Bastian Köcher <[email protected]> * update for versioned upgrade * fix society v2 migration * remove references to members being sorted from commnets * fix type * fix can_migrate check * add sanity log * fix sanity check * kick ci * kick ci * run tests with --experimental flag * versioned migration cleanup * revert pipeline change * use defensive! * semicolons * defensive and doc comment * address pr comment * feature gate the versioned migration * defensive_unwrap_or * fix test * fix doc comment * change defensive to a log warning * remove can_migrate anti-pattern * Update frame/society/Cargo.toml Co-authored-by: Bastian Köcher <[email protected]> * add experimental feature warning to doc comment * update doc comment * bump ci * kick ci * kick ci * kick ci --------- Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
Sam Johnson authored
-