diff --git a/core/src/consensus/tendermint/engine.rs b/core/src/consensus/tendermint/engine.rs index a1bbc84fd1..6e15d3b5b9 100644 --- a/core/src/consensus/tendermint/engine.rs +++ b/core/src/consensus/tendermint/engine.rs @@ -471,6 +471,7 @@ fn give_additional_rewards 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.