Skip to content

Commit 6109734

Browse files
authored
Merge pull request #169 from yungwine/mytonctrl2_dev
Change slashing cron time for testnets
2 parents f502a7b + b49a3bf commit 6109734

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

mytoncore/functions.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -558,15 +558,20 @@ def ScanLiteServers(local, ton):
558558
def General(local):
559559
local.add_log("start General function", "debug")
560560
ton = MyTonCore(local)
561-
scanner = Dict()
561+
# scanner = Dict()
562562
# scanner.Run()
563563

564-
# Запустить потоки
564+
# Start threads
565565
local.start_cycle(Elections, sec=600, args=(local, ton, ))
566566
local.start_cycle(Statistics, sec=10, args=(local, ))
567567
local.start_cycle(Offers, sec=600, args=(local, ton, ))
568-
local.start_cycle(Complaints, sec=600, args=(local, ton, ))
569-
local.start_cycle(Slashing, sec=600, args=(local, ton, ))
568+
569+
t = 600
570+
if ton.GetNetworkName() != 'mainnet':
571+
t = 60
572+
local.start_cycle(Complaints, sec=t, args=(local, ton, ))
573+
local.start_cycle(Slashing, sec=t, args=(local, ton, ))
574+
570575
local.start_cycle(Domains, sec=600, args=(local, ton, ))
571576
local.start_cycle(Telemetry, sec=60, args=(local, ton, ))
572577
local.start_cycle(OverlayTelemetry, sec=7200, args=(local, ton, ))

0 commit comments

Comments
 (0)