Skip to content

Commit b46e4e3

Browse files
committed
skip btc teleport installation on installations from backups with non-validator modes
1 parent 1b2b8b5 commit b46e4e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

mytoncore/functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ def enable_mode(local, event_name: str):
9797
def enable_btc_teleport(local):
9898
local.add_log("start enable_btc_teleport function", "debug")
9999
ton = MyTonCore(local)
100+
if not ton.using_validator():
101+
local.add_log("Skip installing BTC Teleport as node is not a validator", "info")
102+
return
100103
from modules.btc_teleport import BtcTeleportModule
101104
BtcTeleportModule(ton, local).init(reinstall=True)
102105

0 commit comments

Comments
 (0)