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

feat: Add over-fetch for small gaps on backfilling #228

Merged
merged 2 commits into from
Feb 21, 2025

Conversation

fernandodeluret
Copy link
Collaborator

Add overfetch to fix the issue where small gaps are not filled in the backfill process due to empty get_signatures_for_address RPC responses

@@ -9,21 +9,36 @@ use tokio::sync::mpsc::Sender;

const GET_SIGNATURES_FOR_ADDRESS_LIMIT: usize = 1000;

/// Below this limit, the gap will be processed using `GAP_LIMIT_RPC` as limit in the RPC call
const GAP_LIMIT: i64 = 10;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Should this be part of OverfetchArgs? For now it's set as a const to can be used inside impl TryFrom<TreeGapModel> for TreeGapFill

@kespinola kespinola merged commit 61c485b into triton-build Feb 21, 2025
3 checks passed
@kespinola kespinola deleted the das-35-over-fetch-gsta branch February 21, 2025 09:13
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