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

[PVM] Node deferring and address state bugfixes #392

Merged
merged 3 commits into from
Nov 5, 2024
Merged

Conversation

evlekht
Copy link
Member

@evlekht evlekht commented Nov 4, 2024

Why this should be merged

CaminoRewardValidatorTx node-deferred address state bug

Before Berlin phase, node had bug, that it always preferred onAbortState in proposal CaminoRewardValidatorTx and another bug, where it never updated onAbort node-deferred address state for expired deferred validator.
That lead to CaminoRewardValidatorTx never updating node-deferred address state.

And because Berlin fixes those bugs, we need to persist consistency. This PR fixates this logic with phase, so all pre-Berlin nodes will keep old behavior, but starting with Berlin they will correctly remove node-deferred address-sate bit.

No-op address state transactions

This PR also makes addressStateTx fail if its not modifying target address state. This affects only Berlin nodes.

Other

Also does a few small cleanups.

How this was tested

With existing unit tests and new test cases.

@evlekht evlekht marked this pull request as ready for review November 4, 2024 17:08
@evlekht evlekht changed the title [PVM] wip [PVM] Node deferring and address state bug Nov 4, 2024
@evlekht evlekht changed the title [PVM] Node deferring and address state bug [PVM] Node deferring and address state bugfixes Nov 4, 2024
@evlekht evlekht force-pushed the evlekht/addr-state-fix branch from 9d60b09 to 496b267 Compare November 4, 2024 18:27
@evlekht evlekht force-pushed the evlekht/addr-state-fix branch from 496b267 to d1b9a3d Compare November 5, 2024 11:35
@evlekht evlekht merged commit 67f5103 into dev Nov 5, 2024
10 checks passed
@evlekht evlekht deleted the evlekht/addr-state-fix branch November 5, 2024 13:11
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.

2 participants