-
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
Lack of consistency checks for stakes cache #24376
Comments
cc: @HaoranYi might worth to do considering stake rewards v2 |
@behzadnouri , @t-nelson , @HaoranYi can one of you please help clarify? Is this an issue for activation? An issue that still needs work done on it? |
this was addressed in #24200 |
Sorry to be pedantic. |
The source of inconsistency was patched in #26479 and the sanity checks here #24200 only added these metrics: |
Problem
After the feature gate for #24278 is activated, validators will calculate stake rewards using vote and stake account state cached in the
StakesCache
. However, there are currently no consistency checks that ensure that the stakes cache accurately reflects the state of all active vote and stake accounts in accounts db.One potential pitfall is that the stakes cache implementation assumes that stake and vote accounts cannot have their owner changed during transaction processing. This is safe now but the stake and vote programs could introduce a future change that resets the owner of a closed account and break that assumption.
Context: #24200 (comment)
Proposed Solution
TBD
The text was updated successfully, but these errors were encountered: