Skip to content
Open
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
5 changes: 5 additions & 0 deletions crates/blockchain/src/aggregation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,14 @@ fn build_job(

let (children, accepted_child_ids) = resolve_child_pubkeys(&child_proofs, validators);

// Skip aggregation when there's nothing to aggregate
if raw_ids.is_empty() && children.len() < 2 {
return None;
}
// Skip aggregation when there's only a single raw signature to aggregate.
if children.is_empty() && raw_ids.len() <= 1 {
return None;
}
Comment thread
MegaRedHand marked this conversation as resolved.

let keys_to_delete: Vec<(u64, H256)> = validator_sigs
.into_iter()
Expand Down
Loading