From 0084b35f783f21bcb7cca0744615e8224decbf1e Mon Sep 17 00:00:00 2001
From: Ashley Wright <ashley@msrandom.net>
Date: Wed, 23 Oct 2024 06:05:35 +0300
Subject: [PATCH] Fix reversed tier selection

---
 validator/weight_setting/validator.py        | 2 +-
 validator/weight_setting/winner_selection.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/validator/weight_setting/validator.py b/validator/weight_setting/validator.py
index 678aa556..47c0aa87 100644
--- a/validator/weight_setting/validator.py
+++ b/validator/weight_setting/validator.py
@@ -49,7 +49,7 @@
 from .wandb_args import add_wandb_args
 from .winner_selection import get_scores, get_contestant_scores, get_tiers
 
-VALIDATOR_VERSION: tuple[int, int, int] = (4, 3, 0)
+VALIDATOR_VERSION: tuple[int, int, int] = (4, 3, 1)
 VALIDATOR_VERSION_STRING = ".".join(map(str, VALIDATOR_VERSION))
 
 WEIGHTS_VERSION = (
diff --git a/validator/weight_setting/winner_selection.py b/validator/weight_setting/winner_selection.py
index 78a6fc11..95922a33 100644
--- a/validator/weight_setting/winner_selection.py
+++ b/validator/weight_setting/winner_selection.py
@@ -52,7 +52,7 @@ def get_scores(tiers: list[list[Uid]], blocks: list[int | None], node_count: int
 
     last_tier = None
 
-    for tier in ordered_tiers:
+    for tier in reversed(ordered_tiers):
         if last_tier:
             modified_tiers.append([tier[0], *last_tier[1:]])
         else: