Skip to content

Commit bc237d5

Browse files
committed
Increase INVALID_COLLATION_SLASH
1 parent c9a658c commit bc237d5

File tree

1 file changed

+3
-2
lines changed
  • polkadot/node/network/collator-protocol/src/validator_side_experimental

1 file changed

+3
-2
lines changed

polkadot/node/network/collator-protocol/src/validator_side_experimental/common.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ pub const MAX_STORED_SCORES_PER_PARA: u16 = 1000;
7171
/// Slashing value for a failed fetch that we can be fairly sure does not happen by accident.
7272
pub const FAILED_FETCH_SLASH: Score = Score::new(140).expect("140 is less than MAX_SCORE");
7373

74-
/// Slashing value for an invalid collation.
75-
pub const INVALID_COLLATION_SLASH: Score = Score::new(7_000).expect("7_000 is less than MAX_SCORE");
74+
/// Slashing value for an invalid collation (half of the ma).
75+
pub const INVALID_COLLATION_SLASH: Score =
76+
Score::new(MAX_SCORE / 2).expect("1/2 MAX_SCORE is less than MAX_SCORE");
7677

7778
/// The maximum acceptable delay which can be applied on an advertisement from a collator with score
7879
/// less than the maximum score for the parachain.

0 commit comments

Comments
 (0)