Skip to content

Commit 4087043

Browse files
authored
Remove unnecessary sort in compute_columns_for_custody_group (#4289)
The output is already sorted, no need to sort it again.
1 parent 949905d commit 4087043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

specs/fulu/das-core.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,10 @@ def get_custody_groups(node_id: NodeID, custody_group_count: uint64) -> Sequence
124124
def compute_columns_for_custody_group(custody_group: CustodyIndex) -> Sequence[ColumnIndex]:
125125
assert custody_group < NUMBER_OF_CUSTODY_GROUPS
126126
columns_per_group = NUMBER_OF_COLUMNS // NUMBER_OF_CUSTODY_GROUPS
127-
return sorted([
127+
return [
128128
ColumnIndex(NUMBER_OF_CUSTODY_GROUPS * i + custody_group)
129129
for i in range(columns_per_group)
130-
])
130+
]
131131
```
132132

133133
### `compute_matrix`

0 commit comments

Comments
 (0)