Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/src/consensus/tendermint/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ fn give_additional_rewards<F: FnMut(&Address, u64) -> Result<(), Error>>(
) -> Result<(), Error> {
let sorted_validators = work_info
.into_iter()
.filter(|(_, work)| work.proposed > 0)
.map(|(address, info)| (address, Ratio::new(info.missed, info.proposed)))
// When one sees the Ratio crate's Order trait implementation, he/she can easily realize that the
// comparing routine is erroneous. It inversely compares denominators when the numerators are the same.
Expand Down