-
-
Notifications
You must be signed in to change notification settings - Fork 450
refactor: remove build() and async shuffling calculation #8688
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
Merged
matthewkeil
merged 32 commits into
ChainSafe:unstable
from
guha-rahul:refactor_shiffling_cache
Jan 22, 2026
Merged
Changes from 21 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
fb26c17
fix : remove build() method
guha-rahul 4353bb0
fix : add shuffling to cache
guha-rahul 27b506f
fix : reverting async shuffling refactor
guha-rahul bbdf692
chore: update comments
guha-rahul 97a1372
Remove ShufflingCache dependency from state-transition package
guha-rahul ec2983f
proposer lookahead comments
guha-rahul 03cb629
remove metrics
guha-rahul c3dbaaa
add metrics
guha-rahul 9ae55bc
make set private and remove getSync
guha-rahul f6a425b
add back processState
guha-rahul 58d82a2
deduplicate computeEpochShuffling and make nextShuffling non-optional
guha-rahul 382a664
avoid expensive cache computation when shuffling cache
guha-rahul a06d62f
cache population
guha-rahul 57e6099
fix: add back ShufflingGetter
guha-rahul 6a7d5fe
Merge remote-tracking branch 'upstream/unstable' into refactor_shiffl…
guha-rahul 14a28e9
remove nextShufflingDecisionRoot and fix type error
guha-rahul bc30b36
fix merge error
guha-rahul 4828555
fix metrics
guha-rahul 7f81ffc
use set in brackets
guha-rahul 2eb4ee0
cache shufflings on checkpoint event for regen states and fix test
guha-rahul f81861d
fix: cache all shufflings via processState on checkpoint event
guha-rahul f3aff93
remove null check
guha-rahul 62bce64
use calculateDecisionRoot
guha-rahul 3dc07b8
use setImmediate to defer processing
guha-rahul 0681f48
pnpm lint
guha-rahul eb05b91
use callInNextEventLoop instead of setImmediate
guha-rahul f75cd15
chore: fix parse-path build error
matthewkeil e24b5f3
remove shufflingCalculationTime metric
guha-rahul aa860b5
Merge branch 'refactor_shiffling_cache' of https://github.com/guha-ra…
guha-rahul c2f3801
Revert "chore: fix parse-path build error"
matthewkeil 86b0359
remove the unused metrics
guha-rahul 9aad853
Merge branch 'refactor_shiffling_cache' of https://github.com/guha-ra…
guha-rahul File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1308,32 +1308,23 @@ export function createLodestarMetrics( | |
| name: "lodestar_shuffling_cache_miss_count", | ||
| help: "Count of shuffling cache miss", | ||
| }), | ||
| shufflingBuiltMultipleTimes: register.gauge({ | ||
| name: "lodestar_shuffling_cache_recalculated_shuffling_count", | ||
nflaig marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| help: "Count of shuffling that were build multiple times", | ||
| }), | ||
| shufflingPromiseNotResolvedAndThrownAway: register.gauge({ | ||
| name: "lodestar_shuffling_cache_promise_not_resolved_and_thrown_away_count", | ||
| help: "Count of shuffling cache promises that were discarded and the shuffling was built synchronously", | ||
| shufflingSetMultipleTimes: register.gauge({ | ||
| name: "lodestar_shuffling_cache_set_multiple_times_count", | ||
| help: "Count of shuffling that were set multiple times", | ||
| }), | ||
| shufflingPromiseNotResolved: register.gauge({ | ||
| name: "lodestar_shuffling_cache_promise_not_resolved_count", | ||
| help: "Count of shuffling cache promises that were requested before the promise was resolved", | ||
| }), | ||
| nextShufflingNotOnEpochCache: register.gauge({ | ||
| name: "lodestar_shuffling_cache_next_shuffling_not_on_epoch_cache", | ||
| help: "The next shuffling was not on the epoch cache before the epoch transition", | ||
| }), | ||
| shufflingPromiseResolutionTime: register.histogram({ | ||
| name: "lodestar_shuffling_cache_promise_resolution_time_seconds", | ||
| help: "Time from promise insertion until promise resolution when shuffling was ready in seconds", | ||
| buckets: [0.5, 1, 1.5, 2], | ||
| }), | ||
| shufflingCalculationTime: register.histogram<{source: "build" | "getSync"}>({ | ||
| shufflingCalculationTime: register.histogram({ | ||
|
||
| name: "lodestar_shuffling_cache_shuffling_calculation_time_seconds", | ||
| help: "Run time of shuffling calculation", | ||
| buckets: [0.5, 0.75, 1, 1.25, 1.5], | ||
| labelNames: ["source"], | ||
| }), | ||
| }, | ||
|
|
||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.