Skip to content

Commit

Permalink
Fix best_beacon_node property on MultiBeaconNode - fix ordering (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
eth2353 authored Sep 5, 2024
1 parent 630e3da commit 5293e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/multi_beacon_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ async def __aexit__(self, exc_type, exc_val, exc_tb):
def best_beacon_node(self):
return next(
bn
for bn in sorted(self.beacon_nodes, key=lambda bn: bn.score)
for bn in sorted(self.beacon_nodes, key=lambda bn: bn.score, reverse=True)
if bn.initialized
)

Expand Down

0 comments on commit 5293e9a

Please sign in to comment.