Skip to content

Commit

Permalink
stratum: remove hardcoded ntime range
Browse files Browse the repository at this point in the history
  • Loading branch information
tpruvot committed Jan 15, 2021
1 parent eec1bef commit 52f68f8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions stratum/client_submit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

2 comments on commit 52f68f8

@sparkuss
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! 1000 commits!

@barrystyle
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#358

nice one tanguy

Please sign in to comment.