Skip to content

Commit 2a2a4e7

Browse files
committed
add checking for freezetime before complaints
1 parent 6109734 commit 2a2a4e7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mytoncore/functions.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,10 @@ def Slashing(local, ton):
523523
config32 = ton.GetConfig32()
524524
start = config32.get("startWorkTime")
525525
end = config32.get("endWorkTime")
526+
config15 = ton.GetConfig15()
527+
ts = get_timestamp()
528+
if not(end < ts < end + config15['stakeHeldFor']): # check that currently is freeze time
529+
return
526530
local.add_log("slash_time {}, start {}, end {}".format(slash_time, start, end), "debug")
527531
if slash_time != start:
528532
end -= 60

0 commit comments

Comments
 (0)