mirror of
https://github.com/logos-blockchain/logos-blockchain-specs.git
synced 2026-01-09 08:33:09 +00:00
Fix type signature on building committee data
This commit is contained in:
parent
193f0c5e3c
commit
3277aba5c6
@ -31,7 +31,7 @@ class CarnotTree:
|
||||
def build_committee_from_nodes_with_size(
|
||||
nodes: List[Id],
|
||||
number_of_committees: int,
|
||||
) -> Tuple[List[Id], Dict[int, Committee]]:
|
||||
) -> Tuple[List[Id], Dict[Id, Committee]]:
|
||||
committee_size, remainder = divmod(len(nodes), number_of_committees)
|
||||
committees = [
|
||||
set(nodes[n*committee_size:(n+1)*committee_size])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user