Skip to content

Commit

Permalink
Fix sporadic overflow in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibo-lg committed Jul 24, 2023
1 parent 2013ad4 commit e4a1083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlc-messages/src/oracle_msgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ mod tests {
let msg = Message::from_hashed_data::<secp256k1_zkp::hashes::sha256::Hash>(&event_hex);
let sig = SECP256K1.sign_schnorr(&msg, &key_pair);
let mut sig_hex = *sig.as_ref();
sig_hex[10] += 1;
sig_hex[10] = sig_hex[10].checked_add(1).unwrap_or(0);
let sig = SchnorrSignature::from_slice(&sig_hex).unwrap();
let invalid_announcement = OracleAnnouncement {
announcement_signature: sig,
Expand Down

0 comments on commit e4a1083

Please sign in to comment.