From d59a94865c239a9266a359bea9c7e15e3d208893 Mon Sep 17 00:00:00 2001 From: maaktweluit <10008353+maaktweluit@users.noreply.github.com> Date: Tue, 13 Oct 2020 13:29:06 +0200 Subject: [PATCH] Wrong boolean check on paydate vs current --- core/payment-driver/gnt/src/gnt/faucet.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/payment-driver/gnt/src/gnt/faucet.rs b/core/payment-driver/gnt/src/gnt/faucet.rs index ffa69258cc..b5f17a596e 100644 --- a/core/payment-driver/gnt/src/gnt/faucet.rs +++ b/core/payment-driver/gnt/src/gnt/faucet.rs @@ -87,8 +87,9 @@ impl EthFaucetConfig { .timestamp() .try_into() .map_err(|e: TryFromIntError| GNTDriverError::LibraryError(e.to_string()))?; + log::debug!("faucet paydate={}, current={}", sleep_till, current); // Ignore times in the past - if sleep_till <= current { + if sleep_till >= current { // Cap max seconds to wait at 60 let capped_seconds = min(sleep_till - current, 60); log::info!(