Skip to content
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

Epoch single pass #13

Closed
wants to merge 13 commits into from
Closed

Epoch single pass #13

wants to merge 13 commits into from

Conversation

dapplion
Copy link
Owner

@dapplion dapplion commented Feb 7, 2024

Cherry pick epoch single pass feature from sigp#3206. For more details on the feature:

TODOs

// FIXME(sproul): simplify the participation cache

// FIXME(sproul): decide whether it's worth storing the current epoch participation flags
// *just* for this call. Perhaps the validator API could source it from the state directly.

// FIXME(sproul): double-check this for Capella, proposer shouldn't have 0 effective balance

// FIXME(sproul): this is not a useful concept and should be deleted

  • Just delete, not used, only for metrics. Fixed f420033

// FIXME(sproul): delete once unused

@dapplion dapplion force-pushed the epoch-single-pass branch 4 times, most recently from 51fcc68 to 23e10c6 Compare February 7, 2024 05:36
.epoch_cache()
.check_validity::<E>(current_epoch, epoch_cache_decision_block_root)
.is_ok()
}
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this include the tree_hash_cache?

@@ -4,6 +4,7 @@ use std::collections::HashMap;

type ValidatorIndex = usize;

#[allow(clippy::len_without_is_empty)]
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is clippy complaining in this PR and not in unstable?

@dapplion dapplion force-pushed the epoch-single-pass branch 2 times, most recently from a63e4b6 to 73bd7a2 Compare February 8, 2024 08:13
dapplion and others added 2 commits February 8, 2024 16:33
Co-authored-by: Michael Sproul <michael@sigmaprime.io>
* Delete unused epoch processing code

* Compare total deltas

* Remove unnecessary apply_pending

* cargo fmt

* Remove newline
michaelsproul and others added 6 commits February 14, 2024 12:37
* spec compliant process_sync_aggregate

* Update consensus/state_processing/src/per_block_processing/altair/sync_committee.rs

Co-authored-by: Michael Sproul <micsproul@gmail.com>

---------

Co-authored-by: Michael Sproul <micsproul@gmail.com>
@dapplion dapplion marked this pull request as ready for review February 22, 2024 08:12
@dapplion
Copy link
Owner Author

@dapplion dapplion closed this Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants