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 60e74ea commit 2f18f03Copy full SHA for 2f18f03
mytonctrl/mytonctrl.py
@@ -464,7 +464,10 @@ def check_sync(local, ton):
464
def check_validator_balance(local, ton):
465
if ton.using_validator():
466
validator_wallet = ton.GetValidatorWallet()
467
- validator_account = ton.GetAccount(validator_wallet.addrB64)
+ validator_account = local.try_function(ton.GetAccount, args=[validator_wallet.addrB64])
468
+ if validator_account is None:
469
+ local.add_log(f"Failed to check validator wallet balance", "warning")
470
+ return
471
if validator_account.balance < 100:
472
print_warning(local, "validator_balance_warning")
473
#end define
0 commit comments