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
s0me0ne-unkn0wn
64660ee8d2
Remove years from copyright notes ( #7034 )
...
* Happy New Year!
* Remove year entierly
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove years from copyright notice in the entire repo
---------
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-04-08 20:38:35 +00:00
Przemek Rzad
caa5464c15
Add a CI check ensuring the code has license headers ( #6609 )
...
* Introduce a job scanning and ensuring there are licenses
* Showcase a red test
* Add missing licenses
* Cleanup
* Extend the check
* Add missing licenses
* CI trigger
2023-02-03 12:02:23 +00:00
Shawn Tabrizi
ff5d56fb76
cargo +nightly fmt ( #3540 )
...
* cargo +nightly fmt
* add cargo-fmt check to ci
* update ci
* fmt
* fmt
* skip macro
* ignore bridges
2021-08-02 10:47:33 +00:00
Squirrel
dcb08fd533
Use associated constant for max ( #3375 )
2021-06-28 11:32:33 +02:00
Andronik Ordian
44d02faa62
network-bridge: downgrade log level of benefit rep change ( #3068 )
...
* network-bridge: downgrade log level of benefit rep change
* remove it as we log it at higher level
2021-05-21 19:16:20 -05:00
Robert Habermeier
b8867d71bc
Evict inactive peers from the collator protocol peer-set ( #2680 )
...
* malicious reputation cost is fatal
* make ReportBad a malicious cost
* futures control-flow for cleaning up inactive collator peers
* guide: network bridge updates
* add `PeerDisconnected` message
* guide: update
* reverse order
* remember to match
* implement disconnect peer in network bridge
* implement disconnect_inactive_peers
* test
* remove println
* don't hardcore policy
* add fuse outside of loop
* use default eviction policy
2021-03-24 13:32:28 +01:00
Bernhard Schuster
1e2161258b
refactor/reputation: unify the values used ( #2462 )
...
* refactor/reputation: unify the values used
* chore/rep: rename Annoy* to Cost*, make duplicate message Cost*Repeated
* fix/reputation: lost and found, convert at the boundary to substrate
* refactor/rep: move conversion to base reputation one level down, left conversions
* fix/rep: order of magnitude adjustments
Thanks pierre!
* remove spaces
* chore/rep: give rationale for order of magnitude
* refactor/rep: move UnifiedReputationChange to separate file
* fix/rep: order of magnitudes correction
2021-02-17 17:18:13 +01:00