Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/alert_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def check_validator_wallet_balance(self):
return
validator_wallet = self.ton.GetValidatorWallet()
validator_account = self.ton.GetAccount(validator_wallet.addrB64)
if validator_account.balance < 10:
if validator_account.status != "empty" and validator_account.balance < 10:
self.send_alert("low_wallet_balance", wallet=validator_wallet.addrB64, balance=validator_account.balance)

def check_efficiency(self):
Expand Down
2 changes: 1 addition & 1 deletion mytoncore/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ def parse_db_stats(path: str):
# end define

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