Skip to content

Commit

Permalink
chose one leader
Browse files Browse the repository at this point in the history
  • Loading branch information
jianlinjiang committed Sep 4, 2024
1 parent b229b55 commit 5af9c02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/validation/signing_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ impl SigningMethod {
}
};
let is_aggregator = dvf_signer
.is_aggregator(
.is_propose_aggregator(
signing_epoch.as_u64() + dvf_signer.operator_committee.validator_id(),
)
.await;
Expand All @@ -334,9 +334,9 @@ impl SigningMethod {

if !only_aggregator || (only_aggregator && is_aggregator) {

if duty == "PROPOSER" && dvf_signer.is_propose_aggregator(signing_epoch.as_u64() + dvf_signer.operator_committee.validator_id()).await {
return Err(Error::NotLeader);
}
// if duty == "PROPOSER" && dvf_signer.is_propose_aggregator(signing_epoch.as_u64() + dvf_signer.operator_committee.validator_id()).await {
// return Err(Error::NotLeader);
// }

log::info!("[Dvf {}/{}] Leader trying to achieve {} consensus and aggregate duty signatures",
dvf_signer.operator_id,
Expand Down

0 comments on commit 5af9c02

Please sign in to comment.