From 2f5a00dbda69fdf53c92b386355996420db15ffb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Fri, 17 May 2024 09:26:10 +0100 Subject: [PATCH] removed blocking for coconut in the final epoch state --- common/credential-utils/src/utils.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/common/credential-utils/src/utils.rs b/common/credential-utils/src/utils.rs index 2b2aaba9f7..33a0b20541 100644 --- a/common/credential-utils/src/utils.rs +++ b/common/credential-utils/src/utils.rs @@ -11,11 +11,8 @@ use nym_validator_client::nyxd::contract_traits::{ }; use nym_validator_client::nyxd::Coin; use std::path::PathBuf; -use std::process::exit; use std::time::{Duration, SystemTime}; -const SAFETY_BUFFER_SECS: u64 = 60; // 1 minute - pub async fn issue_credential( client: &C, amount: Coin, @@ -92,13 +89,6 @@ where .as_secs(); if epoch.state.is_final() { - if let Some(finish_timestamp) = epoch.deadline { - if current_timestamp_secs + SAFETY_BUFFER_SECS >= finish_timestamp.seconds() { - info!("In the next {} minute(s), a transition will take place in the coconut system. Deposits should be halted in this time for safety reasons.", SAFETY_BUFFER_SECS / 60); - exit(0); - } - } - break; } else if let Some(final_timestamp) = epoch.final_timestamp_secs() { // Use 1 additional second to not start the next iteration immediately and spam get_current_epoch queries