mirror of
https://github.com/EvernodeXRPL/hpcore.git
synced 2026-04-29 15:37:59 +00:00
Merge branch 'main' into test-release
This commit is contained in:
Binary file not shown.
@@ -14,12 +14,15 @@ uint64_t build_time_sec = 0;
|
||||
*/
|
||||
bool kill_switch(const uint64_t epoch_ms)
|
||||
{
|
||||
if (build_time_sec == 0)
|
||||
{
|
||||
char *eptr;
|
||||
build_time_sec = strtoull(build_time_sec_str, &eptr, 10);
|
||||
}
|
||||
// if (build_time_sec == 0)
|
||||
// {
|
||||
// char *eptr;
|
||||
// build_time_sec = strtoull(build_time_sec_str, &eptr, 10);
|
||||
// }
|
||||
|
||||
const uint64_t epoch_sec = epoch_ms / 1000;
|
||||
return !(epoch_sec > build_time_sec && (epoch_sec - build_time_sec) <= MAX_LIMIT_SEC);
|
||||
// const uint64_t epoch_sec = epoch_ms / 1000;
|
||||
// return !(epoch_sec > build_time_sec && (epoch_sec - build_time_sec) <= MAX_LIMIT_SEC);
|
||||
|
||||
// Commented out kill_switch code in case if it's needed in the future.
|
||||
return false;
|
||||
}
|
||||
Reference in New Issue
Block a user