Skip to content

Commit 872f67b

Browse files
committed
fix displaying active_validator_groups when they are 0
1 parent 1b88179 commit 872f67b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mytonctrl/mytonctrl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ def PrintLocalStatus(local, ton, adnlAddr, validatorIndex, validatorEfficiency,
774774

775775
active_validator_groups = None
776776

777-
if ton.using_validator() and validator_status.validator_groups_master and validator_status.validator_groups_shard:
777+
if ton.using_validator() and validator_status.validator_groups_master is not None and validator_status.validator_groups_shard is not None:
778778
active_validator_groups = local.translate("active_validator_groups").format(validator_status.validator_groups_master, validator_status.validator_groups_shard)
779779

780780
collated, validated = None, None

0 commit comments

Comments
 (0)