Conversation
The wait-for-all-historical-blocks loop (c2f0680) iterated from initSlot to headSlot, but CleanUpTo evicts blocks older than 5 epochs during historical processing. This caused Wait() to deadlock on blocks that had already been processed and removed from the cache. Restrict the wait range to the last 5 epochs, matching the CleanUpTo retention window. Blocks older than this were already processed and persisted; blocks within this range may still be in-flight and need to be waited for.
) Replace the integer counter with a map[epoch]bool set to track which epochs have been aggregated in the current window. This prevents: - Double-counting when AdvanceFinalized reprocesses an epoch - Accepting epochs from already-flushed windows The counter approach caused a cumulative window shift: each reprocessing event incremented the counter without contributing a new epoch, shifting all subsequent block proposer rewards into the wrong aggregation window.
#251) When GetBlockReceipts fails during ProcessBlock, AgnosticTransactions stays empty and BlockGasFees persists f_reward_fees=0. Add a recovery step in processBlockRewards that retries fetching receipts before calculating fees — by epoch processing time the EL has usually recovered.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
🤖 Generated with Claude Code