Skip to content

Commit daa1b9b

Browse files
committed
update setting initial sync
1 parent f1ea228 commit daa1b9b

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

mytoninstaller/mytoninstaller.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
enable_ls_proxy,
3131
enable_ton_storage,
3232
enable_ton_storage_provider,
33-
EnableMode, ConfigureFromBackup, ConfigureOnlyNode
33+
EnableMode, ConfigureFromBackup, ConfigureOnlyNode, SetInitialSync
3434
)
3535
from mytoninstaller.config import (
3636
CreateLocalConfig,
@@ -299,6 +299,7 @@ def General(local, console):
299299
EnableMode(local)
300300
ConfigureFromBackup(local)
301301
ConfigureOnlyNode(local)
302+
SetInitialSync(local)
302303
#end define
303304

304305

mytoninstaller/settings.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ def FirstMytoncoreSettings(local):
206206
# Telemetry
207207
mconfig.sendTelemetry = local.buffer.telemetry
208208

209-
mconfig.initialSync = True
210-
211209
# Записать настройки в файл
212210
SetConfig(path=mconfig_path, data=mconfig)
213211

@@ -1000,3 +998,13 @@ def ConfigureOnlyNode(local):
1000998
SetConfig(path=mconfig_path, data=mconfig)
1001999

10021000
start_service(local, 'mytoncore')
1001+
1002+
1003+
def SetInitialSync(local):
1004+
mconfig_path = local.buffer.mconfig_path
1005+
1006+
mconfig = GetConfig(path=mconfig_path)
1007+
mconfig.initialSync = True
1008+
SetConfig(path=mconfig_path, data=mconfig)
1009+
1010+
start_service(local, 'mytoncore')

0 commit comments

Comments
 (0)