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

Add early return to Blockstore::find_address_signatures methods #33545

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

CriesofCarrots
Copy link
Contributor

Problem

Spin off from #33419. In the case of both find_address_signatures_for_slot and find_address_signatures, there is no reason to read from Blockstore when the slot in question (or range of slots in question, respectively) has already been purged from the ledger.

Summary of Changes

Add early return to find_address_signatures_for_slot and find_address_signatures based on lowest_available_slot

@CriesofCarrots CriesofCarrots changed the title Add early return to find_address_signatures methods Add early return to Blockstore::find_address_signatures methods Oct 5, 2023
@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Oct 5, 2023
@mergify
Copy link
Contributor

mergify bot commented Oct 5, 2023

automerge label removed due to a CI failure

@mergify mergify bot removed the automerge Merge this Pull Request automatically once CI passes label Oct 5, 2023
@CriesofCarrots CriesofCarrots added the automerge Merge this Pull Request automatically once CI passes label Oct 5, 2023
@mergify mergify bot merged commit 6f1922b into solana-labs:master Oct 5, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants