From 52f68f8641632a783ba24f0d6591205db3a3bd81 Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 15 Jan 2021 23:09:45 +0100 Subject: [PATCH] stratum: remove hardcoded ntime range --- stratum/client_submit.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/stratum/client_submit.cpp b/stratum/client_submit.cpp index 055c349..054f83f 100644 --- a/stratum/client_submit.cpp +++ b/stratum/client_submit.cpp @@ -343,8 +343,6 @@ static bool ntime_valid_range(const char ntimehex[]) uint32_t ntime = 0; if (strlen(ntimehex) != 8) return false; sscanf(ntimehex, "%8x", &ntime); - if (ntime < 0x5b000000 || ntime > 0x60000000) // 14 Jan 2021 - return false; time(&rawtime); return (abs(rawtime - ntime) < (30 * 60)); }