Skip to content

Commit 7f696b0

Browse files
authored
Merge pull request #452 from yungwine/alerts
update alerts
2 parents a7bdc12 + 70668e3 commit 7f696b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/alert_bot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def check_validator_wallet_balance(self):
322322
return
323323
validator_wallet = self.ton.GetValidatorWallet()
324324
validator_account = self.ton.GetAccount(validator_wallet.addrB64)
325-
if validator_account.balance < 10:
325+
if validator_account.status != "empty" and validator_account.balance < 10:
326326
self.send_alert("low_wallet_balance", wallet=validator_wallet.addrB64, balance=validator_account.balance)
327327

328328
def check_efficiency(self):

mytoncore/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ def parse_db_stats(path: str):
100100
# end define
101101

102102
def get_hostname():
103-
return subprocess.run(["hostname", "-f"], stdout=subprocess.PIPE).stdout.decode().strip()
103+
return subprocess.run(["hostname"], stdout=subprocess.PIPE).stdout.decode().strip()

0 commit comments

Comments
 (0)