-
Notifications
You must be signed in to change notification settings - Fork 29
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
reward: Fix state regeneration with post-Kaia staking info #43
Conversation
a912b3f
to
38a6f51
Compare
293b303
to
e0e8f1f
Compare
e0e8f1f
to
31cb5d3
Compare
31cb5d3
to
c14f8c2
Compare
@yoomee1313 @hyeonLewis @hyunsooda PTAL. Tell me if you need further context. |
4e065d1
to
e51c56f
Compare
I think |
@hyunsooda Thanks for asking that. Preload is a strictly distinct feature from the cache. The difference is eviction.
When I named the feature, I ruled out 'cache' because it implies it can be evicted. So I used the name 'preload'. I also considered 'prefetch' but didn't choose it because prefetch also implies optimization. |
Proposed changes
Affects
debug_trace*
APIs on full-mode nodes may have returned incorrect results if the traced transaction touches any validator reward address. e.g. interaction with PublicDelegation contracts. Archive-mode nodes are unaffected.Background
Finalize()
), starting from the nearest block in which the state exists in the database.Finalize()
queries the staking info for the block to calculate rewards. Without the staking info, we cannot regenerate the correct state.Problem
Solution
Types of changes
Checklist
I have read the CLA Document and I hereby sign the CLA
in first time contribute$ make test
)Related issues
Further comments