-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
RPC: No good way to poll recent signatures for an address #19780
Comments
I think that |
Is the issue that the search starts from the most recent signature, so that the |
Yes, exactly |
Hmm, I see. This will definitely require some new plumbing, since typically we work backward in time and only check long-term storage if whatever search is not fully satisfied by the recent ledger in blockstore. I'll think on a performant way to do this. (May want to bundle this plumbing with the blockstore-column rework discussed here: #19515 (comment)) Also, I think it will be somewhat confusing to users to have/disambiguate |
Got it, I don't think the need for this is too strong so I think it would be ok if it gets deprioritized for now, especially since it requires new plumbing and it can be worked around with the current API.
Yes, that's what I was thinking. |
Hi All, Use case: If our node goes down for some time and on restarting unable to catch up to the latest slot, we need to start with snapshot (remove --no-snapshot-fetch flag). As suggested in docs, we could use Problem is, there is no 'after' parameter which from our records put the last tx that we know before the gap period. Please let me know if there is a better way to handle this if I am missing something. Thanks for the good work! |
I don't believe there is a better way until this issue gets resolved |
When this PR lands, we'll be in a position to start reworking the AddressSignatures column. |
Looks like the dependent PR is merged now. Any plans of picking this one in near future? |
I have started designing the new AddressSignatures column. There's still quite a bit of lower-level work there before we can start adjusting RPC parameters and behavior |
Problem
The
getSignaturesForAddress
RPC method doesn't support anafter
option for fetching signatures for transactions that have been processed more recently than the queried signature. This makes it difficult to poll for more recent signatures.Proposed Solution
Add an
after
option togetSignaturesForAddress
The text was updated successfully, but these errors were encountered: