mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 09:27:25 +00:00
Merge pull request #13 from tpruvot/next
stratum: remove hardcoded ntime range
This commit is contained in:
commit
ab7ee2d0d5
1 changed files with 0 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue