Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
add comment about rewards
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Oct 27, 2019
1 parent 42ec8a8 commit 2d85664
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions srml/staking/src/slashing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ pub(crate) fn slash<T: Trait>(params: SlashParams<T>) -> RewardPayout<T> {
} else {
// we slash based on the max in era - this new event is not the max,
// so neither the validator or any nominators will need an update.
//
// this does lead to a divergence of our system from the paper, which
// pays out some reward even if the latest report is not max-in-era.
// we opt to avoid the nominator lookups and edits and leave more rewards
// for more drastic misbehavior.
return RewardPayout(None)
}

Expand Down

0 comments on commit 2d85664

Please sign in to comment.