From 91b9f4c4c6e0ea6a9750438e80af1b4e5f0d440d Mon Sep 17 00:00:00 2001 From: zyc <18611145971@163.com> Date: Wed, 26 Nov 2025 21:07:29 +0800 Subject: [PATCH] Fix assertion --- nym-node/src/config/gateway_tasks.rs | 2 +- nym-node/src/config/old_configs/old_config_v10.rs | 2 +- nym-node/src/config/old_configs/old_config_v4.rs | 2 +- nym-node/src/config/old_configs/old_config_v5.rs | 2 +- nym-node/src/config/old_configs/old_config_v6.rs | 2 +- nym-node/src/config/old_configs/old_config_v7.rs | 2 +- nym-node/src/config/old_configs/old_config_v8.rs | 2 +- nym-node/src/config/old_configs/old_config_v9.rs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/nym-node/src/config/gateway_tasks.rs b/nym-node/src/config/gateway_tasks.rs index ca47c15538..4830c1f0b2 100644 --- a/nym-node/src/config/gateway_tasks.rs +++ b/nym-node/src/config/gateway_tasks.rs @@ -149,7 +149,7 @@ impl ZkNymTicketHandlerDebug { }; assert!( - target_secs > 86400, + target_secs >= 86400, "the maximum time between redemption can't be lower than 1 day!" ); Duration::from_secs(target_secs as u64) diff --git a/nym-node/src/config/old_configs/old_config_v10.rs b/nym-node/src/config/old_configs/old_config_v10.rs index e45cca8dd2..7bd41bd63a 100644 --- a/nym-node/src/config/old_configs/old_config_v10.rs +++ b/nym-node/src/config/old_configs/old_config_v10.rs @@ -598,7 +598,7 @@ impl ZkNymTicketHandlerDebugV10 { }; assert!( - target_secs > 86400, + target_secs >= 86400, "the maximum time between redemption can't be lower than 1 day!" ); Duration::from_secs(target_secs as u64) diff --git a/nym-node/src/config/old_configs/old_config_v4.rs b/nym-node/src/config/old_configs/old_config_v4.rs index 1293424322..a0a2251ad8 100644 --- a/nym-node/src/config/old_configs/old_config_v4.rs +++ b/nym-node/src/config/old_configs/old_config_v4.rs @@ -436,7 +436,7 @@ impl ZkNymTicketHandlerDebugV4 { }; assert!( - target_secs > 86400, + target_secs >= 86400, "the maximum time between redemption can't be lower than 1 day!" ); Duration::from_secs(target_secs as u64) diff --git a/nym-node/src/config/old_configs/old_config_v5.rs b/nym-node/src/config/old_configs/old_config_v5.rs index ec22dbb111..edad4d85d1 100644 --- a/nym-node/src/config/old_configs/old_config_v5.rs +++ b/nym-node/src/config/old_configs/old_config_v5.rs @@ -438,7 +438,7 @@ impl ZkNymTicketHandlerDebugV5 { }; assert!( - target_secs > 86400, + target_secs >= 86400, "the maximum time between redemption can't be lower than 1 day!" ); Duration::from_secs(target_secs as u64) diff --git a/nym-node/src/config/old_configs/old_config_v6.rs b/nym-node/src/config/old_configs/old_config_v6.rs index 32c9fc41d7..ae469945a2 100644 --- a/nym-node/src/config/old_configs/old_config_v6.rs +++ b/nym-node/src/config/old_configs/old_config_v6.rs @@ -458,7 +458,7 @@ impl ZkNymTicketHandlerDebugV6 { }; assert!( - target_secs > 86400, + target_secs >= 86400, "the maximum time between redemption can't be lower than 1 day!" ); Duration::from_secs(target_secs as u64) diff --git a/nym-node/src/config/old_configs/old_config_v7.rs b/nym-node/src/config/old_configs/old_config_v7.rs index 4f836edbd8..4d1d992ced 100644 --- a/nym-node/src/config/old_configs/old_config_v7.rs +++ b/nym-node/src/config/old_configs/old_config_v7.rs @@ -516,7 +516,7 @@ impl ZkNymTicketHandlerDebugV7 { }; assert!( - target_secs > 86400, + target_secs >= 86400, "the maximum time between redemption can't be lower than 1 day!" ); Duration::from_secs(target_secs as u64) diff --git a/nym-node/src/config/old_configs/old_config_v8.rs b/nym-node/src/config/old_configs/old_config_v8.rs index cd469fc92c..8ee710e851 100644 --- a/nym-node/src/config/old_configs/old_config_v8.rs +++ b/nym-node/src/config/old_configs/old_config_v8.rs @@ -490,7 +490,7 @@ impl ZkNymTicketHandlerDebugV8 { }; assert!( - target_secs > 86400, + target_secs >= 86400, "the maximum time between redemption can't be lower than 1 day!" ); Duration::from_secs(target_secs as u64) diff --git a/nym-node/src/config/old_configs/old_config_v9.rs b/nym-node/src/config/old_configs/old_config_v9.rs index d14b89f31a..242560f93e 100644 --- a/nym-node/src/config/old_configs/old_config_v9.rs +++ b/nym-node/src/config/old_configs/old_config_v9.rs @@ -591,7 +591,7 @@ impl ZkNymTicketHandlerDebugV9 { }; assert!( - target_secs > 86400, + target_secs >= 86400, "the maximum time between redemption can't be lower than 1 day!" ); Duration::from_secs(target_secs as u64)