mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-10 00:53:08 +00:00
Fill from root committee
This commit is contained in:
parent
ab8c76588c
commit
6475ae66d4
@ -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]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user