We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23f7f72 commit 6b43862Copy full SHA for 6b43862
modules/alert_bot.py
@@ -209,6 +209,9 @@ def check_db_usage(self):
209
def check_validator_wallet_balance(self):
210
if not self.ton.using_validator():
211
return
212
+ validator_status = self.ton.GetValidatorStatus()
213
+ if not validator_status.is_working or validator_status.out_of_sync >= 20:
214
+ return
215
validator_wallet = self.ton.GetValidatorWallet()
216
validator_account = self.ton.GetAccount(validator_wallet.addrB64)
217
if validator_account.balance < 10:
0 commit comments