From 6475ae66d46f4bedcb7ca2a8f15de488119e485d Mon Sep 17 00:00:00 2001 From: danielsanchezq Date: Fri, 30 Jun 2023 09:14:47 +0200 Subject: [PATCH] Fill from root committee --- carnot/tree_overlay.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/carnot/tree_overlay.py b/carnot/tree_overlay.py index 222c68b..19b8084 100644 --- a/carnot/tree_overlay.py +++ b/carnot/tree_overlay.py @@ -36,9 +36,8 @@ class CarnotTree: for n in range(0, number_of_committees) ] # refill committees with extra nodes, - # we fill the leafs first as they are the least important if remainder != 0: - cycling_committees = itertools.cycle(reversed(committees)) + cycling_committees = itertools.cycle(committees) for node in nodes[-remainder:]: next(cycling_committees).add(node) committees = [frozenset(s) for s in committees]