Andrei Eres and Andrei Sandu
cf66819a19
Add counter for unapproved candidates ( #7491 )
...
* Add counter for unapproved candidates
* Update metrics
* Split metrics
* Remove depth metric
* Print only the oldest unapproved candidates
* Update logging condition
* Fix logging condition
* Update logging
* Update node/core/approval-voting/src/lib.rs
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
---------
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
2023-08-10 11:17:24 +00:00
7c89f2886e
Fix flaky reputation change test ( #7550 )
...
* Fix flaky reputation change test
* Remove fixme
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-08-04 14:27:55 +00:00
Andrei Eres
174f23d1cc
Alert on frequent network errors ( #7410 )
...
* Introduce is_frequent util
* Add dirty warn_if_frequent! implementation
* Add freq
* Fix order in condition
* Update
* Update docs
* Fix
* Remove old impl
* Fix errors
* Add wif to av-distr
* Add wif to col prot
* Rename
* Add wif to state-distr
* Address review comments
* Change Freq implementation
* Remove the zero division check
* Make rate explicit
* Fix typo
* Update rate constant
* Introduce explicit rates
* Update docs
* Split errors freq
* Downgrade coarsetime
2023-07-17 12:05:57 +00:00
Andrei Eres and Andrei Sandu
866aa1e8d4
Warn if participated in the losing side of a dispute ( #7404 )
...
* Warn if participated in the losing side of a dispute
* Update naming
* Additionally filter by candidate hash
* Debug zombienet tests
* Update 0002-parachains-disputes.zndsl
* Debug zombienet
* Update node/core/dispute-coordinator/src/initialized.rs
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* Add checking to zombienet tests
---------
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
2023-06-23 11:45:48 +00:00
Andrei Eres and Vsevolod Stakhov
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