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] Fix CaminoRewardValidatorTx onAbort address state #368

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

evlekht
Copy link
Member

@evlekht evlekht commented Aug 1, 2024

Why this should be merged

CaminoRewardValidatorTx execution has error, most likely copy-paste mistake. It expected, that onCommit and onAbort states will be identical, but tx is not setting deferred addressState bit in onAbort state and setting it twice in onCommit state.

How this works

This looks like a simple copy-paste error. So PR simply replaces onCommit state with onAbort state.

How this was tested

It wasn't.

Additional references

Original PR based on cortina-15 dev
#344

@evlekht evlekht changed the title Dev c0/fix reward validator tx on abort state [PVM] Add validator admin role, reduce root admin permissions Aug 2, 2024
@evlekht evlekht changed the title [PVM] Add validator admin role, reduce root admin permissions [PVM] Fix CaminoRewardValidatorTx onAbort address state Aug 2, 2024
@evlekht evlekht force-pushed the dev-c0/fix-reward-validator-tx-on-abort-state branch from 28c2e44 to 47667dd Compare August 2, 2024 16:07
mo-c4t
mo-c4t previously approved these changes Aug 5, 2024
Noctunus
Noctunus previously approved these changes Aug 5, 2024
@evlekht evlekht force-pushed the dev-c0/fix-reward-validator-tx-on-abort-state branch from 47667dd to bdaa2cb Compare August 7, 2024 12:53
@evlekht evlekht changed the base branch from dev-c0/base to dev August 7, 2024 12:54
@evlekht evlekht dismissed stale reviews from Noctunus and mo-c4t August 7, 2024 12:54

The base branch was changed.

@evlekht evlekht marked this pull request as ready for review August 7, 2024 12:54
@evlekht evlekht merged commit 3118b33 into dev Aug 7, 2024
@evlekht evlekht deleted the dev-c0/fix-reward-validator-tx-on-abort-state branch August 7, 2024 12:55
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.

3 participants