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

Fix fetchMissingData: re-fetch cached accounts #691

Merged
merged 3 commits into from
Jan 12, 2023
Merged

Conversation

mitschabaude
Copy link
Contributor

@mitschabaude mitschabaude commented Jan 12, 2023

closes #430 (let's see if this can finally stay closed!)

this is confirmed to fix one instance of stale account data (incorrect nonce) used by Mina.transaction. The issue was that an account that already was fecthed once, and was therefore cached, was not re-fetched when it was marked to be fetched during Mina.transaction. This meant that an account that was updated by an earlier transaction remained stale.

The simple solution is to fetch all accounts that are marked for fetching.

closes #599

as a side-effect, this makes the cache invalidation timeout completely unused, therefore we remove it and close the issue of making it configurable

Copy link
Member

@Trivo25 Trivo25 left a comment

Choose a reason for hiding this comment

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

nice :)

@mitschabaude mitschabaude merged commit 1f80e0d into main Jan 12, 2023
@mitschabaude mitschabaude deleted the fix/stale-account branch January 12, 2023 17:43
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.

Make cache invalidation timeout to be configurable Fix fetchMissingData with remote blockchain
3 participants