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

GetProgramAccounts can yield incosistent results #2

Open
linuskendall opened this issue Jun 22, 2022 · 0 comments
Open

GetProgramAccounts can yield incosistent results #2

linuskendall opened this issue Jun 22, 2022 · 0 comments

Comments

@linuskendall
Copy link
Contributor

Since GPA is currently not fully supported by the plugin (not using account_audit table) this means it can yield incosistent result - either including accounts that shouldn't be or excluding accounts that should be present in the response.

Two examples:

  1. if an account YYYY owned by XXX had a write on processed level commitment, then it would now no longer be visible in getProgramAccounts(XXX, commitment=confirmed) until that write got confirmed - so getProgramAccounts from the proxy for Postgres would not include all the program accounts necessarily

  2. if there is a fork that creates an account AAAA owned by XXX on slot 123 (so there is an entry in accounts table with commitment processed) but slot 123 is skipped now it seems to me that getProgramAccounts(XXX, commitment=processed) would include the account AAAA even after slot 123 is orphaned (i.e. after 124 is confirmed with child = 122 for example).

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

No branches or pull requests

1 participant