Skip to content

Commit ba8122d

Browse files
committed
add upgrade --force
1 parent de9ee63 commit ba8122d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mytonctrl/mytonctrl.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,8 +366,13 @@ def Upgrade(ton, args):
366366
validatorConsole["pubKeyPath"] = "/var/ton-work/keys/server.pub"
367367
ton.SetSettings("validatorConsole", validatorConsole)
368368

369+
force = False
370+
if '--force' in args:
371+
force = True
372+
args.remove('--force')
373+
369374
clang_version = get_clang_major_version()
370-
if (clang_version is None or clang_version < 16) and ('--force' not in args):
375+
if (clang_version is None or clang_version < 16) and not force:
371376
text = "{red}Error: clang version 16 or higher is required for TON Node software upgrade.{endc}\n"
372377
if clang_version is None:
373378
text += "Could not check clang version.\n If you are sure that clang version is 16 or higher, use --force option.\n"

0 commit comments

Comments
 (0)