Skip to content

Commit a642374

Browse files
committed
update collated_blocks in status
1 parent 099ebb4 commit a642374

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mytonctrl/mytonctrl.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,14 @@ def PrintLocalStatus(local, ton, adnlAddr, validatorIndex, validatorEfficiency,
758758

759759
collated, validated = None, None
760760
ls_queries = None
761-
if ton.using_validator() and validatorIndex != -1:
761+
if ton.using_validator():
762762
node_stats = ton.get_node_statistics()
763763
if node_stats and 'collated' in node_stats and 'validated' in node_stats:
764764
collated = local.translate('collated_blocks').format(node_stats['collated']['ok'], node_stats['collated']['error'])
765765
validated = local.translate('validated_blocks').format(node_stats['validated']['ok'], node_stats['validated']['error'])
766+
else:
767+
collated = local.translate('collated_blocks').format('collecting data...', 'wait for the next validation round')
768+
validated = local.translate('validated_blocks').format('collecting data...', 'wait for the next validation round')
766769
if ton.using_liteserver():
767770
node_stats = ton.get_node_statistics()
768771
if node_stats and 'ls_queries' in node_stats:

0 commit comments

Comments
 (0)