L1 PLEX-2601 LP Fetch Blocks in Batches#1504
Open
dhaidashenko wants to merge 7 commits intodevelopfrom
Open
Conversation
Contributor
|
jmank88
reviewed
Apr 7, 2026
archseer
previously approved these changes
Apr 8, 2026
amit-momin
reviewed
Apr 8, 2026
amit-momin
reviewed
Apr 8, 2026
c3a445d to
6f6cffc
Compare
|
amit-momin
approved these changes
Apr 8, 2026
ogtownsend
approved these changes
Apr 9, 2026
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
PLEX-2601 — Batch block fetching inside the log poller loader so slot discovery via
getSignaturesForAddressruns once per backfill range, instead of restarting for every slot-range batch.Problem
Previously, large backfills were split in the log poller into multiple independent slot ranges. Each range called BackfillForAddresses, which re-ran
getSlotsToFetchfrom the newest signatures. Pagination (beforeSig) did not carry across adjacent batches, so every batch effectively rediscovered recent history and walked backward again. That added redundant RPC load, slowed deep catch-up on hot addresses, and could worsen throttling or recovery time in worst cases.Solution
processBlocksRangeInBatches/ per-batch BackfillForAddresses).getSlotsToFetchno longer executed multiple times.