Skip to content

Commit bf46931

Browse files
authored
Merge pull request #476 from yungwine/btc-teleport
add btcTeleportDisabled flag
2 parents 4287907 + e560728 commit bf46931

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ class Setting:
6464
'prometheus_url': Setting('prometheus', None, 'Prometheus pushgateway url'),
6565
'onlyNode': Setting(None, None, 'MyTonCtrl will work only for collecting validator telemetry (if `sendTelemetry` is True), without participating in Elections and etc.'),
6666
'importGc': Setting(None, None, 'Delete imported archive blocks files. Restart mytoncore to apply this setting'),
67+
'btcTeleportDisabled': Setting('validator', False, 'Do not automatically install BTC teleport'),
6768
}
6869

6970

modules/btc_teleport.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ def install(self, branch):
7373
def init(self, reinstall=False, branch: str = 'master'):
7474
if os.path.exists(self.src_dir) and not reinstall:
7575
return
76+
if self.ton.local.db.get('btcTeleportDisabled'):
77+
self.local.add_log('Skip BTC Teleport installation', 'info')
78+
return
7679
self.local.add_log('Installing btc_teleport', 'info')
7780
os.makedirs(self.keystore_path, mode=0o700, exist_ok=True)
7881
self.install(branch)

0 commit comments

Comments
 (0)