Skip to content

Commit

Permalink
Silence repeated signer warning (#18162)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Jun 13, 2024
1 parent 81d0217 commit 5e86338
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion crates/sui-core/src/checkpoints/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ use sui_types::committee::StakeUnit;
use sui_types::crypto::AuthorityStrongQuorumSignInfo;
use sui_types::digests::{CheckpointContentsDigest, CheckpointDigest};
use sui_types::effects::{TransactionEffects, TransactionEffectsAPI};
use sui_types::error::SuiResult;
use sui_types::error::{SuiError, SuiResult};
use sui_types::gas::GasCostSummary;
use sui_types::message_envelope::Message;
use sui_types::messages_checkpoint::{
Expand Down Expand Up @@ -1919,6 +1919,14 @@ impl CheckpointSignatureAggregator {
let envelope =
SignedCheckpointSummary::new_from_data_and_sig(self.summary.clone(), signature);
match self.signatures_by_digest.insert(their_digest, envelope) {
// ignore repeated signatures
InsertResult::Failed {
error:
SuiError::StakeAggregatorRepeatedSigner {
conflicting_sig: false,
..
},
} => Err(()),
InsertResult::Failed { error } => {
warn!(
checkpoint_seq = self.summary.sequence_number,
Expand Down

0 comments on commit 5e86338

Please sign in to comment.