- Sep 27, 2022
-
-
Liu-Cheng Xu authored
-
Roman Useinov authored
* [Feature] Add deposit to fast-unstake * disable on ErasToCheckPerBlock == 0 * removed signed ext * remove obsolete import * remove some obsolete stuff * fix some comments * fixed all the comments * remove obsolete imports * fix some tests * CallNotAllowed tests * Update frame/fast-unstake/src/lib.rs Co-authored-by: Kian Paimani <[email protected]> * fix tests * fix deregister + tests * more fixes * make sure we go above existential deposit * fixed the last test * some nit fixes * fix node * fix bench * last bench fix * Update frame/fast-unstake/src/lib.rs * ".git/.scripts/fmt.sh" 1 Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: command-bot <>
-
Ankan authored
* used maxunlockingchunks from config * mhl MaxUnlockingChunks * no migration needed * changes as per requested * fmt * fix tests * fix benchmark * warning in the doc for abrupt changes in the config * less unnecessary details in the test * fix tests Co-authored-by: mrisholukamba <[email protected]> Co-authored-by: parity-processbot <>
-
Sergej Sakac authored
* Pallet staking events to named enum * fmt * update np staking tests * update remaining events * update benchmarks * Update frame/nomination-pools/test-staking/src/lib.rs Co-authored-by: Kian Paimani <[email protected]> * Update frame/staking/src/pallet/mod.rs * Update frame/staking/src/pallet/mod.rs * Update frame/staking/src/lib.rs * Update frame/staking/src/pallet/impls.rs Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: parity-processbot <> Co-authored-by: Ankan <[email protected]>
-
Davide Galassi authored
Remove Epochs reference from slots subsystem
-
Bastian Köcher authored
-
Kian Paimani authored
* export more types from fast-untsake
🤦 ♂️ * make non-test * fmt
-
- Sep 26, 2022
-
-
Aaro Altonen authored
* Move transaction protocol to its own crate * Update Cargo.lock * Fix binaries * Update client/network/transactions/src/lib.rs Co-authored-by: Dmitry Markin <[email protected]> * Update client/service/src/builder.rs Co-authored-by: Bastian Köcher <[email protected]> * Apply review comments * Revert one change and apply cargo-fmt * Remove Transaction from Message * Add array-bytes * trigger CI * Add comment about codec index Co-authored-by: Dmitry Markin <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
Kian Paimani authored
-
ZhiYong authored
* 1.Add pruning param "canonical" in sc-cli. 2.Make PruningMode's default value to ArchiveCanonical. * Update tests in sc-state-db. * Update tests in sc-state-db. * 1.Add a new value `AllWithNonFinalized` in `enum BlocksPruning` which Corresponds to `blocks_pruning 0` in CLI . 2.Change value `All` to `AllFinalized` in `enum BlocksPruning` and make it to keep full finalized block history. * Make some corresponding adjustments based on the content in the conversation. * Update client/db/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> * Apply suggestions from code review. * 1.Change `blocks_pruning` to be like `state_pruning` . * Fmt and add some doc. * Update client/cli/src/params/pruning_params.rs Co-authored-by: Bastian Köcher <[email protected]> * Update client/cli/src/params/pruning_params.rs Co-authored-by: Bastian Köcher <[email protected]> * Update doc. * Change `new_test_with_tx_storage` to take `BlocksPruning`. * Fmt Co-authored-by: Bastian Köcher <[email protected]>
-
Roman Useinov authored
* [Enhancement] Remove optional Pool subscription from fast-unstake * remove nomination-pools pallet dependency * fixes * more fixes * more fixes * more fixes
-
- Sep 25, 2022
-
-
Sergej Sakac authored
-
Michael Müller authored
Co-authored-by: Alexander Theißen <[email protected]>
-
- Sep 24, 2022
-
-
Ankan authored
Co-authored-by: parity-processbot <>
-
Oliver Tale-Yazdi authored
* Add base-weight to events Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix test Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
Frederik Gartenmeister authored
* Const impls * Adding explainatory comments * Update primitives/weights/src/weight_v2.rs Doc comment suggestions Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/weights/src/weight_v2.rs Doc comment suggestions Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
- Sep 23, 2022
-
-
Davide Galassi authored
* Remove timestamp from SlotInfo * Expose as millis instead of secs * Nits * Fix test after field removal * Yet another test fix * On the fly timestamp computation * Removed slot timestamp from logs * Removed reference to timestamp from slots subsystem * Slot based algorithm tests do not require timstamp inherent anymore * Remove junk files * Further tests cleanup * Trigger pipeline * Apply code suggestions * Trigger pipeline Co-authored-by: André Silva <[email protected]>
-
Roman Useinov authored
* [Fix] parameter_types! dead code errors * mark the whole impl allow(unused)
-
Roman Useinov authored
* [Feature] Sequential migration execution for try-runtime * remove unused * guards * reinstate encode/decode * proper feature gate * proper test feature gate * Update frame/support/src/traits/hooks.rs Co-authored-by: Kian Paimani <[email protected]> * Update frame/support/src/traits/hooks.rs Co-authored-by: Kian Paimani <[email protected]> * fix tests * redo Tuple tests * Update frame/support/src/traits/hooks.rs Co-authored-by: Kian Paimani <[email protected]> * use parameter_types for testing * lint fix * Update frame/support/src/traits/hooks.rs Co-authored-by: Jegor Sidorenko <[email protected]> * Update frame/support/src/traits/hooks.rs Co-authored-by: Oliver Tale-Yazdi <[email protected]> * eloquent feature gate * redo tests * more fixes * properly handle pre/post errors * remove some tests and fix the others * add format import * import fix * more import fixes Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: Jegor Sidorenko <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: parity-processbot <>
-
Oliver Tale-Yazdi authored
* Replace :: with _ in auto-generated file names Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fmt Signed-off-by: Oliver Tale-Yazdi <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]>
-
Kian Paimani authored
* add failing test for itamar * an ugly example of fast unstake * Revert "add failing test for itamar" This reverts commit 16c4d8015698a0684c090c54fce8b470a2d2feb2. * fast unstake wip * clean it up a bit * some comments * on_idle logic * fix * comment * new working version, checks all pass, looking good * some notes * add mock boilerplate * more boilerplate * simplify the weight stuff * ExtBuilder for pools * fmt * rm bags-list, simplify setup_works * mock + tests boilerplate * make some benchmarks work * mock boilerplate * tests boilerplate * run_to_block works * add Error enums * add test * note * make UnstakeRequest fields pub * some tests * fix origin * fmt * add fast_unstake_events_since_last_call * text * rewrite some benchmes and fix them -- the outcome is still strange * Fix weights * cleanup * Update frame/election-provider-support/solution-type/src/single_page.rs * fix build * Fix pools tests * iterate teset + mock * test unfinished * cleanup and add some tests * add test successful_multi_queue * comment * rm Head check * add TODO * complete successful_multi_queue * + test early_exit * fix a lot of things above the beautiful atlantic ocean
🌊 * seemingly it is finished now * Fix build * ".git/.scripts/fmt.sh" 1 * Fix slashing amount as well * better docs * abstract types * rm use * import * Update frame/nomination-pools/benchmarking/src/lib.rs Co-authored-by: Nitwit <[email protected]> * Update frame/fast-unstake/src/types.rs Co-authored-by: Nitwit <[email protected]> * Fix build * fmt * Update frame/fast-unstake/src/lib.rs Co-authored-by: Keith Yeung <[email protected]> * make bounded * feedback from code review with Ankan * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/lib.rs Co-authored-by: Roman Useinov <[email protected]> * Update frame/fast-unstake/src/mock.rs * update to master * some final review comments * fmt * fix clippy * remove unused * ".git/.scripts/fmt.sh" 1 * make it all build again * fmt * undo fishy change Co-authored-by: Ross Bulat <[email protected]> Co-authored-by: command-bot <> Co-authored-by: Nitwit <[email protected]> Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Roman Useinov <[email protected]>
-
- Sep 22, 2022
-
-
Shawn Tabrizi authored
* rename anon to pure proxy * remove old weight comments * fix merge * Update frame/proxy/src/lib.rs Co-authored-by: joe petrowski <[email protected]> * fn pure -> fn create_pure Co-authored-by: joe petrowski <[email protected]>
-
Qinxuan Chen authored
* Migrate remaining old decl_* macros to the new pallet attribute macros Signed-off-by: koushiro <[email protected]> * Apply review suggestions Signed-off-by: koushiro <[email protected]> * Apply review suggestions Signed-off-by: koushiro <[email protected]> * use pallet::storage * Fix dev rpc test Signed-off-by: koushiro <[email protected]> * Fix service tests Signed-off-by: koushiro <[email protected]> Signed-off-by: koushiro <[email protected]>
-
Bastian Köcher authored
Co-authored-by: André Silva <[email protected]>
-
- Sep 21, 2022
-
-
Alexander Theißen authored
* Require `FixedPointOperand` for Balances * Delay deposit calculation * Make refunds pro rata of consumed storage * Add storage migration * Fix clippy * Add liquidity checks * Fixe delayed deposit limit enforcement * Defer charges * Import Vec * Add try-runtime hooks for migration * Fix warning * Adapt to new OnRuntimeUpgrade trait * Apply suggestions from code review Co-authored-by: Sasha Gryaznov <[email protected]> * fmt * Apply suggestions from code review Co-authored-by: Sasha Gryaznov <[email protected]> * More suggestions from code review Co-authored-by: Sasha Gryaznov <[email protected]>
-
Oliver Tale-Yazdi authored
* Cleaup imports Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Format template Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Set steps min value to two Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
Koute authored
-
Davide Galassi authored
Renaming from 'intermediate_take' to 'intermediate_remove'
-
Ankan authored
* replace pallet level unboundedness to individual storage items * bound structs * bounding history depth * defensive error * use the era history depth from config * clean up history depth from storage in v11 * keep the name HistoryDepth for the new configuration value * use u32 for history depth in node runtime * improve doc comments * add HistoryDepth to mock runtimes with pallet-staking * rustfmt * refactor and doc improve * apply re-benchmarked weight for staking * pr feedback improvements * test for claimed rewards following the expected bounds * refactor test to calculate first and last reward era programmatically * verify previous eras cannot be claimed * add migration v12 * ".git/.scripts/bench-bot.sh" pallet dev pallet_staking * fix compiler error * corrupting history depth does not lead to catastrophic issue * fix new line * remove unused import * fmt * add test to document scenario where history depth is reduced without migration * fmt * Update frame/staking/src/lib.rs Co-authored-by: Kian Paimani <[email protected]> * Update frame/staking/src/migrations.rs Co-authored-by: Kian Paimani <[email protected]> * doc for all storage items bounded by HistoryDepth * Update frame/staking/src/pallet/mod.rs Co-authored-by: Kian Paimani <[email protected]> * Update frame/staking/src/tests.rs Co-authored-by: Kian Paimani <[email protected]> * pr feedback fixes * Update frame/staking/src/tests.rs Co-authored-by: Kian Paimani <[email protected]> * remove extra checks * fix merge * fmt Co-authored-by: command-bot <> Co-authored-by: Kian Paimani <[email protected]> Co-authored-by: kianenigma <[email protected]>
-
Xavier Lau authored
* Use `array-bytes` for All Array/Bytes/Hex Operations Signed-off-by: Xavier Lau <[email protected]> * Reorder * Self Review * Format * Fix Tests * Bump `array-bytes` * Optimize large test res Signed-off-by: Xavier Lau <[email protected]> Co-authored-by: parity-processbot <>
-
- Sep 20, 2022
-
-
Sergej Sakac authored
* BREAKING: Rename Origin * more renaming * a bit more renaming * fix * more fixing * fix in frame_support * even more fixes * fix * small fix * ... * update .stderr * docs * update docs * update docs * docs
-
Michal Kucharczyk authored
* Use temporary db for benchmarking If no db option was given benchmarks shall use temporary database. Otherwise the test can use locally stored database which maybe out-of-date causing test to fail. * nicer syntax * explanatory comment added * Update utils/frame/benchmarking-cli/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]>
-
Alexandru Vasile authored
* rpc/chain_spec: Add traits for `chainSpec` API Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_spec: Implement `chainSpec` RPC methods Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_spec: Add tests Signed-off-by: Alexandru Vasile <[email protected]> * bin/node: Enable `chainSpec` API Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_spec: Assume `genesis_hash` as non-empty Signed-off-by: Alexandru Vasile <[email protected]> * Update client/rpc-spec/Cargo.toml Co-authored-by: Niklas Adolfsson <[email protected]> * Update client/rpc-spec/src/lib.rs Co-authored-by: Niklas Adolfsson <[email protected]> * client/rpc_spec: Rename crate to `rpc_spec_v2` Signed-off-by: Alexandru Vasile <[email protected]> * rpc-servers: Remove the `version` field from `rpc_methods` Signed-off-by: Alexandru Vasile <[email protected]> * rpc/chain_spec: Fix copyright years Signed-off-by: Alexandru Vasile <[email protected]> Signed-off-by: Alexandru Vasile <[email protected]> Co-authored-by: Niklas Adolfsson <[email protected]>
-
Dmitry Markin authored
* Receive and import target block body * Request target block * minor: wording * Check for block body in the test * Import target block justifications * Fix: do not fail block validation if no justifications received * Fix: import target blocks without justifications Co-authored-by: arkpar <[email protected]>
-
Andrei Sandu authored
Signed-off-by: Andrei Sandu <[email protected]> Signed-off-by: Andrei Sandu <[email protected]>
-
Alexander Samusev authored
* [WIP][ci] Revert cancel-pipeline job * fail test-linux-stable * fix test-linux-stable
-
Vladimir Istyufeev authored
-
- Sep 19, 2022
-
-
Oliver Tale-Yazdi authored
* Put type constraint at the end Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Fix rust features Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Use new OnRuntimeUpgrade hooks Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Use new OnRuntimeUpgrade hooks Signed-off-by: Oliver Tale-Yazdi <[email protected]> Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
Alexander Theißen authored
* Use WeakBoundedVec for instrumented code * Remove `RelaxedMaxCodeLen` from kitchensink
-
NingLin-P authored
* update interfaces of OnRuntimeUpgrade & Hooks Signed-off-by: linning <[email protected]> * remove try-runtime for PreStateDigest Signed-off-by: linning <[email protected]> * remove the Default bound of PreStateDigest Signed-off-by: linning <[email protected]> * remove try-runtime for PreStateDigest & pre_upgrade Signed-off-by: linning <[email protected]> * remove tmp storage between upgrade hooks Signed-off-by: linning <[email protected]> * ensure hooks are storage noop Signed-off-by: linning <[email protected]> * remove OnRuntimeUpgradeHelpersExt Signed-off-by: linning <[email protected]> * cargo check & fmt Signed-off-by: linning <[email protected]> * rename PreStateDigest to PreUpgradeState Signed-off-by: linning <[email protected]> * replace associate type with codec & vec Signed-off-by: linning <[email protected]> * add helper strcut to help encode/decode tuple Signed-off-by: linning <[email protected]> * update comment Signed-off-by: linning <[email protected]> * fix Signed-off-by: linning <[email protected]> * add test Signed-off-by: linning <[email protected]> * address comment Signed-off-by: linning <[email protected]> * fix doc Signed-off-by: linning <[email protected]> * fix ci Signed-off-by: linning <[email protected]> * address comment Signed-off-by: linning <[email protected]> * add more test cases Signed-off-by: linning <[email protected]> * make clippy happy Signed-off-by: linning <[email protected]> * fmt Signed-off-by: linning <[email protected]> * update comment Signed-off-by: linning <[email protected]> * fmt Signed-off-by: linning <[email protected]> Signed-off-by: linning <[email protected]>
-