lighten up the mesh debug

actually there's no reason i think to have it print all
four checks - just have it print on two of them, just in
case for some reason the prints could be used to time a glitch.
This commit is contained in:
bunnie 2025-12-19 03:29:30 +08:00
parent 2c80de4933
commit e5790d76a3
No known key found for this signature in database

View file

@ -273,10 +273,10 @@ pub fn mesh_check_and_react(csprng: &mut Csprng, one_way: &OneWayCounter) {
Some(false) => {
bollard!(die, 4);
if paranoid1 == 0 {
crate::println_d!("mesh");
unsafe {
one_way.inc(bao1x_api::POSSIBLE_ATTACKS).unwrap();
}
crate::println_d!("mesh");
} else {
die();
}
@ -284,10 +284,10 @@ pub fn mesh_check_and_react(csprng: &mut Csprng, one_way: &OneWayCounter) {
csprng.random_delay();
bollard!(die, 4);
if paranoid2 == 0 {
crate::println_d!("mesh");
unsafe {
one_way.inc(bao1x_api::POSSIBLE_ATTACKS).unwrap();
}
crate::println_d!("mesh");
} else {
die();
}
@ -299,7 +299,6 @@ pub fn mesh_check_and_react(csprng: &mut Csprng, one_way: &OneWayCounter) {
if failures != 0 {
bollard!(die, 4);
if paranoid1 == 0 {
crate::println_d!("mesh");
unsafe {
one_way.inc(bao1x_api::POSSIBLE_ATTACKS).unwrap();
}
@ -313,7 +312,6 @@ pub fn mesh_check_and_react(csprng: &mut Csprng, one_way: &OneWayCounter) {
csprng.random_delay();
bollard!(die, 4);
if paranoid2 == 0 {
crate::println_d!("mesh");
unsafe {
one_way.inc(bao1x_api::POSSIBLE_ATTACKS).unwrap();
}