Skip to content

Commit

Permalink
Include none votes in completion criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
nibhar committed Nov 25, 2024
1 parent 78a4e13 commit ab72063
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions validator/src/aggregation/tendermint/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,14 @@ impl TendermintAggregationProtocol {
Arc::clone(&registry),
Arc::clone(&partitioner),
|aggregate: &TendermintContribution, _, _| {
aggregate.proposals().iter().any(|(_, contributor_count)| {
*contributor_count >= Policy::TWO_F_PLUS_ONE as usize
})
let t = aggregate.all_contributors().len() == Policy::SLOTS as usize;
let t = t || aggregate.contributions.iter().any(|(_hash_option, contributor_count)| {
contributor_count.signers.len() >= Policy::TWO_F_PLUS_ONE as usize
});
if t {
log::warn!(?aggregate, "Encountered final aggregate");
}
t
},
));

Expand Down

0 comments on commit ab72063

Please sign in to comment.