mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 04:01:51 +00:00
Single-pass epoch processing and optimised block processing (#5279)
* Single-pass epoch processing (#4483, #4573) Co-authored-by: Michael Sproul <michael@sigmaprime.io> * Delete unused epoch processing code (#5170) * Delete unused epoch processing code * Compare total deltas * Remove unnecessary apply_pending * cargo fmt * Remove newline * Use epoch cache in block packing (#5223) * Remove progressive balances mode (#5224) * inline inactivity_penalty_quotient_for_state * drop previous_epoch_total_active_balance * fc lint * spec compliant process_sync_aggregate (#15) * 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> * Delete the participation cache (#16) * update help * Fix op_pool tests * Fix fork choice tests * Merge remote-tracking branch 'sigp/unstable' into epoch-single-pass * Simplify exit cache (#5280) * Fix clippy on exit cache * Clean up single-pass a bit (#5282) * Address Mark's review of single-pass (#5386) * Merge remote-tracking branch 'origin/unstable' into epoch-single-pass * Address Sean's review comments (#5414) * Address most of Sean's review comments * Simplify total balance cache building * Clean up unused junk * Merge remote-tracking branch 'origin/unstable' into epoch-single-pass * More self-review * Merge remote-tracking branch 'origin/unstable' into epoch-single-pass * Merge branch 'unstable' into epoch-single-pass * Fix imports for beta compiler * Fix tests, probably
This commit is contained in:
@@ -369,10 +369,8 @@ OPTIONS:
|
||||
useful for execution nodes which don't improve their payload after the first call, and high values are
|
||||
useful for ensuring the EL is given ample notice. Default: 1/3 of a slot.
|
||||
--progressive-balances <MODE>
|
||||
Control the progressive balances cache mode. The default `fast` mode uses the cache to speed up fork choice.
|
||||
A more conservative `checked` mode compares the cache's results against results without the cache. If there
|
||||
is a mismatch, it falls back to the cache-free result. Using the default `fast` mode is recommended unless
|
||||
advised otherwise by the Lighthouse team. [possible values: disabled, checked, strict, fast]
|
||||
Deprecated. This optimisation is now the default and cannot be disabled. [possible values: fast, disabled,
|
||||
checked, strict]
|
||||
--proposer-reorg-cutoff <MILLISECONDS>
|
||||
Maximum delay after the start of the slot at which to propose a reorging block. Lower values can prevent
|
||||
failed reorgs by ensuring the block has ample time to propagate and be processed by the network. The default
|
||||
|
||||
@@ -56,7 +56,6 @@ The following fields are returned:
|
||||
able to vote) during the current epoch.
|
||||
- `current_epoch_target_attesting_gwei`: the total staked gwei that attested to
|
||||
the majority-elected Casper FFG target epoch during the current epoch.
|
||||
- `previous_epoch_active_gwei`: as per `current_epoch_active_gwei`, but during the previous epoch.
|
||||
- `previous_epoch_target_attesting_gwei`: see `current_epoch_target_attesting_gwei`.
|
||||
- `previous_epoch_head_attesting_gwei`: the total staked gwei that attested to a
|
||||
head beacon block that is in the canonical chain.
|
||||
@@ -65,7 +64,7 @@ From this data you can calculate:
|
||||
|
||||
#### Justification/Finalization Rate
|
||||
|
||||
`previous_epoch_target_attesting_gwei / previous_epoch_active_gwei`
|
||||
`previous_epoch_target_attesting_gwei / current_epoch_active_gwei`
|
||||
|
||||
When this value is greater than or equal to `2/3` it is possible that the
|
||||
beacon chain may justify and/or finalize the epoch.
|
||||
@@ -80,7 +79,6 @@ curl -X GET "http://localhost:5052/lighthouse/validator_inclusion/0/global" -H
|
||||
{
|
||||
"data": {
|
||||
"current_epoch_active_gwei": 642688000000000,
|
||||
"previous_epoch_active_gwei": 642688000000000,
|
||||
"current_epoch_target_attesting_gwei": 366208000000000,
|
||||
"previous_epoch_target_attesting_gwei": 1000000000,
|
||||
"previous_epoch_head_attesting_gwei": 1000000000
|
||||
|
||||
Reference in New Issue
Block a user