From eeeb4b32464d271931a928af7dc1b22720c78202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Tue, 20 Aug 2024 16:43:36 +0100 Subject: [PATCH] fixed incorrect assertion when validating maximum time between redemption --- gateway/src/config/mod.rs | 2 +- nym-node/src/config/entry_gateway.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/src/config/mod.rs b/gateway/src/config/mod.rs index 5a5c57e3f9..7605987a79 100644 --- a/gateway/src/config/mod.rs +++ b/gateway/src/config/mod.rs @@ -528,7 +528,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/entry_gateway.rs b/nym-node/src/config/entry_gateway.rs index 8a0144db71..6807e55d58 100644 --- a/nym-node/src/config/entry_gateway.rs +++ b/nym-node/src/config/entry_gateway.rs @@ -117,7 +117,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)