Skip to content

Commit

Permalink
refactor: apply suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: Konstantin Akimov <[email protected]>
  • Loading branch information
UdjinM6 and knst authored Feb 12, 2024
1 parent 903c617 commit 2ec4e55
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/functional/feature_governance.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,10 @@ def have_trigger_for_height(self, sb_block_height):
count = 0
for node in self.nodes:
valid_triggers = node.gobject("list", "valid", "triggers")
valid_triggers_list = list(valid_triggers.values())
for i in range(len(valid_triggers)):
if json.loads(valid_triggers_list[i]["DataString"])["event_block_height"] != sb_block_height:
for trigger in list(valid_triggers.values()):
if json.loads(trigger["DataString"])["event_block_height"] != sb_block_height:
continue
if valid_triggers_list[i]['AbsoluteYesCount'] > 0:
if trigger['AbsoluteYesCount'] > 0:
count = count + 1
break
return count == len(self.nodes)
Expand Down

0 comments on commit 2ec4e55

Please sign in to comment.