From b49a3bf949bda5749680928143ba124968890b57 Mon Sep 17 00:00:00 2001 From: yungwine Date: Wed, 7 Feb 2024 14:30:15 +0700 Subject: [PATCH] change slashing cron time for testnets --- mytoncore/functions.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/mytoncore/functions.py b/mytoncore/functions.py index c28c4b64..2cc4ec50 100755 --- a/mytoncore/functions.py +++ b/mytoncore/functions.py @@ -558,15 +558,20 @@ def ScanLiteServers(local, ton): def General(local): local.add_log("start General function", "debug") ton = MyTonCore(local) - scanner = Dict() + # scanner = Dict() # scanner.Run() - # Запустить потоки + # Start threads local.start_cycle(Elections, sec=600, args=(local, ton, )) local.start_cycle(Statistics, sec=10, args=(local, )) local.start_cycle(Offers, sec=600, args=(local, ton, )) - local.start_cycle(Complaints, sec=600, args=(local, ton, )) - local.start_cycle(Slashing, sec=600, args=(local, ton, )) + + t = 600 + if ton.GetNetworkName() != 'mainnet': + t = 60 + local.start_cycle(Complaints, sec=t, args=(local, ton, )) + local.start_cycle(Slashing, sec=t, args=(local, ton, )) + local.start_cycle(Domains, sec=600, args=(local, ton, )) local.start_cycle(Telemetry, sec=60, args=(local, ton, )) local.start_cycle(OverlayTelemetry, sec=7200, args=(local, ton, ))