WIP trash changes

This commit is contained in:
Michael Sproul
2019-05-13 17:32:06 +10:00
parent ac51d7be3b
commit 13ec3d125e
8 changed files with 46 additions and 45 deletions

View File

@@ -24,10 +24,10 @@ pub fn process_slashings(
let penalty = std::cmp::max(
effective_balance * std::cmp::min(total_penalities * 3, current_total_balance)
/ current_total_balance,
effective_balance / spec.min_penalty_quotient,
effective_balance / 1, /* FIXME(sproul): spec.min_penalty_quotient, */
);
state.validator_balances[index] -= penalty;
state.balances[index] -= penalty;
}
}