Skip to content

Commit

Permalink
Update crates/threshold-signature-server/src/validator/api.rs
Browse files Browse the repository at this point in the history
Co-authored-by: David <[email protected]>
  • Loading branch information
JesseAbram and dvdplm authored Oct 23, 2024
1 parent 7312376 commit 537f1b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/threshold-signature-server/src/validator/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,8 @@ pub async fn validate_new_reshare(
.await?
.ok_or_else(|| ValidatorErr::ChainFetch("Not Currently in a reshare"))?;

if chain_data.new_signers != reshare_data.new_signers
|| chain_data.block_number != reshare_data.block_number.saturating_sub(1)
if chain_data.block_number != reshare_data.block_number.saturating_sub(1)
|| chain_data.new_signers != reshare_data.new_signers
{
return Err(ValidatorErr::InvalidData);
}
Expand Down

0 comments on commit 537f1b4

Please sign in to comment.