We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19a5665 commit 01367e3Copy full SHA for 01367e3
src/chain-libs/chain-impl-mockchain/src/vote/tally.rs
@@ -203,7 +203,7 @@ impl TallyResult {
203
let stake_with_gamma_scaling = stake.clone().pow(&gamma);
204
205
let weight = stake_with_gamma_scaling
206
- .to_integer_round(Round::Down)
+ .to_integer_round(Round::Nearest)
207
.unwrap_or((Integer::from(weight.0), Ordering::Less))
208
.0
209
.to_u64()
0 commit comments