Skip to content

fix: remove parenthesis for historical backfill - #9814

Open
kevaundray wants to merge 3 commits into
sigp:unstablefrom
kevaundray:patch-2
Open

fix: remove parenthesis for historical backfill#9814
kevaundray wants to merge 3 commits into
sigp:unstablefrom
kevaundray:patch-2

Conversation

@kevaundray

Copy link
Copy Markdown
Contributor

(modified this in web UI, so probably doesn't compile)

Issue Addressed

This was computing (256 + 65536)/ 2 =32,896 epochs. I believe it should be 256 + 65536/2 = 33,024

Which issue # does this PR address?

Proposed Changes

Please list or describe the changes introduced by this PR.

Additional Info

Please provide any additional information. For example, future considerations
or information useful for reviewers.

@chong-he

Copy link
Copy Markdown
Member

Good catch, the fix looks correct, as per the spec: https://github.com/ethereum/consensus-specs/blob/caeca85c6c4f60cfed3bf716afa571bfb0c72d59/specs/phase0/p2p-interface.md#compute_min_epochs_for_block_requests

Just got to fix the formatting stuff as you mention

@chong-he chong-he added bug Something isn't working work-in-progress PR is a work-in-progress labels Aug 17, 2026
churn_limit_quotient is a plain u64, so calling .as_u64() on it does not
compile. Only min_validator_withdrawability_delay (an Epoch) needs the
conversion.
@kevaundray
kevaundray marked this pull request as ready for review August 18, 2026 00:31
@chong-he chong-he added ready-for-review The code is ready for review and removed work-in-progress PR is a work-in-progress labels Aug 18, 2026
@mergify

mergify Bot commented Aug 18, 2026

Copy link
Copy Markdown

Some required checks have failed. Could you please take a look @kevaundray? 🙏

@mergify mergify Bot added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working waiting-on-author The reviewer has suggested changes and awaits thier implementation.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants