-
Notifications
You must be signed in to change notification settings - Fork 293
column serving issue and other fixes #7528
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,7 +47,8 @@ func handle_custody_groups(cfg: RuntimeConfig, node_id: NodeId, | |
custody_groups: HashSet[CustodyIndex] | ||
current_id = node_id | ||
|
||
while custody_groups.lenu64 < custody_group_count: | ||
let safe_count = min(custody_group_count, cfg.NUMBER_OF_CUSTODY_GROUPS) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. https://github.com/ethereum/consensus-specs/blob/v1.6.0-beta.0/specs/fulu/das-core.md#get_custody_groups defines it as an error to do this: assert custody_group_count <= NUMBER_OF_CUSTODY_GROUPS
# Skip computation if all groups are custodied
if custody_group_count == NUMBER_OF_CUSTODY_GROUPS:
return [CustodyIndex(i) for i in range(NUMBER_OF_CUSTODY_GROUPS)] but that would make things more complicated to return anything like an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we can need the peer for blocks? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That's compatible with not thinking it has any custody at all. |
||
while custody_groups.lenu64 < safe_count: | ||
var hashed_bytes: array[8, byte] | ||
|
||
let | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mapIt
will cause the allocation of an extra seq and some extra processing - if we're just getting the length, this is wasteful