Andrei Sandu
|
e165eacd58
|
Logs: add extra debug log for negative rep changes (#1205)
* refactor and more debug
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
* review
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
* fix
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
* 🤦
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
---------
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
|
2023-09-01 14:55:23 +03:00 |
|
Oliver Tale-Yazdi
|
342d720573
|
Use same fmt and clippy configs as in Substrate (#7611)
* Use same rustfmt.toml as Substrate
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* format format file
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Format with new config
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Add Substrate Clippy config
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Print Clippy version in CI
Otherwise its difficult to reproduce locally.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Make fmt happy
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Update node/core/pvf/src/error.rs
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
* Update node/core/pvf/src/error.rs
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
|
2023-08-14 14:29:29 +00:00 |
|
Francisco Aguirre
|
cc9f8129af
|
Change Fixed to WeightInfoBounds for Polkadot (#7077)
* Add polkadot XCM benchmarks
* Add temp
* ".git/.scripts/commands/bench/bench.sh" xcm polkadot pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm polkadot pallet_xcm_benchmarks::generic
* Add weights to XCM on Polkadot
* Make CI fail on old files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Update template
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Add reserve_asset_deposited benchmark
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::generic
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Change initiate_reserve_deposit in runtime weights
* Update weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
* Remove trusted reserves from runtimes
* Fix pallet-xcm-benchmarks mock
* Fix test
* Change pallet xcm weigher in kusama
* Fix
* Remove merge conflict artifact
* Remove initiate_reserve_withdraw from generic benchmarks
* Add missing implementation to XCM benchmark
* Fix failing karura test
* Remove dbg!
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
* Fix fmt
* Revert "Fix fmt"
This reverts commit 676f2d8db07d7427750c79f95494d4988d06fda5.
* Fix fmt
* Remove duplicated template code
* Add back part of the template
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible
* Don't skip reserve asset deposited benchmark
* Remove call to non-generated benchmark yet
* Underscore unused parameter
* Skip not supported benchmarks and hardcode value
* Remove ReserveAssetDeposited benchmark
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible
* Add back ReserveAssetDeposited
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm polkadot pallet_xcm_benchmarks::fungible
* Use default benchmark for ReserveAssetDeposited
* Add missing parameter
* Revert reserve asset deposited benchmark
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm kusama pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench-vm/bench-vm.sh" xcm westend pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::fungible
* Add 'real' benchmarks
* Add TrustedReserve to actual XcmConfig
* Add TrustedReserve to actual XcmConfig (fix)
* Whitelist from benchmarking XCM storage keys read each block (#6871)
* Whitelist from benchmarking XCM storage keys read each block
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime westend pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime rococo pallet_xcm
* Remove XcmPallet SupportedVersion from the benchmark whitelist
* ".git/.scripts/commands/bench/bench.sh" runtime polkadot pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime kusama pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime westend pallet_xcm
* ".git/.scripts/commands/bench/bench.sh" runtime rococo pallet_xcm
* WIP
* Add necessary traits, remove unnecessary whitelisted keys
* Fix tests
* Remove unused file
* Remove unused import
---------
Co-authored-by: command-bot <>
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm kusama pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm rococo pallet_xcm_benchmarks::fungible
* ".git/.scripts/commands/bench/bench.sh" xcm westend pallet_xcm_benchmarks::fungible
* Fix spellchecker issues
* Remove unused migration code
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com>
|
2023-07-19 14:18:03 +00:00 |
|
Andrei Eres
|
0a1bc654d9
|
Delay reputation updates (#7214)
* Add futures-timer
* Make cost_or_benefit public
* Update ReportPeer message format
* Add delay to reputation updates (dirtywork)
* Update ReputationAggregator
* Update tests
* Fix flucky tests
* Move reputation to state
* Use the main loop for handling reputation sendings
* Update
* Move reputation to utils
* Update reputation sending
* Fix arguments order
* Update state
* Remove new from state
* Add constant
* Add failing test for delay
* Change mocking approach
* Fix type errors
* Fix comments
* Add message handling to select
* Fix bitfields-distribution tests
* Add docs to reputation aggregator
* Replace .into_base_rep
* Use one REPUTATION_CHANGE_INTERVAL by default
* Add reputation change to statement-distribution
* Update polkadot-availability-bitfield-distribution
* Update futures selecting in subsystems
* Update reputation adding
* Send malicious changes right away without adding to state
* Add reputation to StatementDistributionSubsystem
* Handle reputation in statement distribution
* Add delay test for polkadot-statement-distribution
* Fix collator-protocol tests before applying reputation delay
* Remove into_base_rep
* Add reputation to State
* Fix failed tests
* Add reputation delay
* Update tests
* Add batched network message for peer reporting
* Update approval-distribution tests
* Update bitfield-distribution tests
* Update statement-distribution tests
* Update collator-protocol tests
* Remove levels in matching
* Address clippy errors
* Fix overseer test
* Add a metric for original count of rep changes
* Update Reputation
* Revert "Add a metric for original count of rep changes"
This reverts commit 6c9b0c1ec34491d16e562bdcba8db6b9dcf484db.
* Update node/subsystem-util/src/reputation.rs
Co-authored-by: Vsevolod Stakhov <vsevolod.stakhov@parity.io>
* Remove redundant vec
---------
Co-authored-by: Vsevolod Stakhov <vsevolod.stakhov@parity.io>
|
2023-06-15 13:46:06 +00:00 |
|