This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
get_vote_accounts() doesn't work with forks #2994
Comments
CC @sakridge |
rob-solana
added a commit
to rob-solana/solana
that referenced
this issue
Feb 28, 2019
rob-solana
added a commit
that referenced
this issue
Feb 28, 2019
@rob-solana this seems to be the same problem we fix by filtering account.tokens == 0 in the Accounts::load* functions, seems like there can be an Accounts::get_vote_accounts which does this filtering in the same fashion, what do you think? |
@sakridge, I don't think that's the issue. try uncommenting and running that test, which shows that the vote_accounts are deleted in the parent |
vote_accounts probably needs to have a form that's similar to transaction_count |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem
when setting a vote account balance to zero in a child fork, the parent fork is also cleared
Proposed Solution
introduce a forks-oriented index for the vote accounts cache
The text was updated successfully, but these errors were encountered: