Skip to content

Commit fd782af

Browse files
committed
rm state-ttl only if validator
1 parent dfd2d61 commit fd782af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mytonctrl/mytonctrl.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,9 @@ def Upgrade(ton, args):
382382
upgrade_script_path = pkg_resources.resource_filename('mytonctrl', 'scripts/upgrade.sh')
383383
runArgs = ["bash", upgrade_script_path, "-a", author, "-r", repo, "-b", branch]
384384
exitCode = run_as_root(runArgs)
385+
if ton.using_validator():
386+
from mytoninstaller.mytoninstaller import set_node_argument
387+
set_node_argument(ton.local, ["--state-ttl", "-d"])
385388
if exitCode == 0:
386389
text = "Upgrade - {green}OK{endc}"
387390
else:

0 commit comments

Comments
 (0)