Skip to content

Commit 3c4c4bd

Browse files
committed
fix
1 parent a98fffa commit 3c4c4bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/validator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def check_efficiency(self, args):
5454
end_time = timestamp2utcdatetime(config32.endWorkTime)
5555
color_print(f"Previous round time: {{yellow}}from {start_time} to {end_time}{{endc}}")
5656
if validator:
57-
if not validator.is_masterchain:
57+
if validator.is_masterchain == False:
5858
print("Validator index is greater than 100 in the previous round - no efficiency data.")
5959
elif validator.get('efficiency') is None:
6060
print('Failed to get efficiency for the previous round')
@@ -71,7 +71,7 @@ def check_efficiency(self, args):
7171
end_time = timestamp2utcdatetime(int(get_timestamp()))
7272
color_print(f"Current round time: {{green}}from {start_time} to {end_time}{{endc}}")
7373
if validator:
74-
if not validator.is_masterchain:
74+
if validator.is_masterchain == False:
7575
print("Validator index is greater than 100 in the current round - no efficiency data.")
7676
elif (time.time() - config34.startWorkTime) / (config34.endWorkTime - config34.startWorkTime) < 0.8:
7777
print("The validation round has started recently, there is not enough data yet. "

0 commit comments

Comments
 (0)