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

The worker is unable to save the account_states in a nonexist state. #77

Open
shenao78 opened this issue Sep 11, 2024 · 0 comments
Open

Comments

@shenao78
Copy link

shenao78 commented Sep 11, 2024

For example, if an account starts in an uninit state and then a transaction transfers all its balance out, leaving the final balance as 0, the account’s state changes from uninit to nonexist. However, in PostgreSQL, the latest_account_states remains in the uninit state, and the balance has not changed; it still shows the previous balance (it should be 0).

I checked the code, and when the account is in a nonexist state, no data is retrieved from the block, and the processing of the account will be skipped in this line of code , causing the account_state in a nonexist state not to be inserted.

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