Skip to content

Commit

Permalink
hotfix: Ignore broken batch
Browse files Browse the repository at this point in the history
  • Loading branch information
wojciechsromek committed Jan 13, 2025
1 parent ea88363 commit f7adac3
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion iris-mpc/src/bin/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ async fn receive_batch(
msg_counter += 1;

let shares_encryption_key_pairs = shares_encryption_key_pairs.clone();

let smpc_request: UniquenessRequest =
serde_json::from_str(&message.message).map_err(|e| {
ReceiveRequestError::json_parse_error("Uniqueness request", e)
Expand All @@ -266,6 +266,25 @@ async fn receive_batch(
continue;
}

let force_ignore = vec![
"00123b99c044484346788cea00000000",
"001148c4cff8e0fe6f15953a00000000",
"00123b99c044484346788cea00000000",
"0011885f03fb4c4ac4a0c0d000000000",
"0011adcf9e8051ed55eb0dee00000000",
"0012aa221ad51123f638ad6a00000000",
"0011d5cbfa08bedd1ef7e7e900000000",
"0011ace3eaab0926fd8f47d400000000",
"0012f21b417e50c799517c7d00000000",
"0011d065d2795f3a55f741da00000000",
];
if force_ignore.contains(&smpc_request.signup_id.as_str()) {
// Some party (maybe us) already meant to delete this request, so we
// skip it. Ignore this message when calculating the batch size.
msg_counter -= 1;
continue;
}

if let Some(batch_size) = smpc_request.batch_size {
// Updating the batch size instantly makes it a bit unpredictable, since
// if we're already above the new limit, we'll still process the current
Expand Down

0 comments on commit f7adac3

Please sign in to comment.