From 2a2a4e7811172efb24606d6615b197c5f1b44e08 Mon Sep 17 00:00:00 2001 From: yungwine Date: Sat, 10 Feb 2024 14:53:34 +0700 Subject: [PATCH] add checking for freezetime before complaints --- mytoncore/functions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mytoncore/functions.py b/mytoncore/functions.py index 2cc4ec50..2b654dc0 100755 --- a/mytoncore/functions.py +++ b/mytoncore/functions.py @@ -523,6 +523,10 @@ def Slashing(local, ton): config32 = ton.GetConfig32() start = config32.get("startWorkTime") end = config32.get("endWorkTime") + config15 = ton.GetConfig15() + ts = get_timestamp() + if not(end < ts < end + config15['stakeHeldFor']): # check that currently is freeze time + return local.add_log("slash_time {}, start {}, end {}".format(slash_time, start, end), "debug") if slash_time != start: end -= 60