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

stricter constraint that fails unqualified commission at check tx #387

Merged
merged 2 commits into from Nov 28, 2023

Conversation

nghuyenthevinh2000
Copy link
Member

Summary of changes

Check tx skipped in dyncomm decorator will broadcast failed txs to other nodes, thus posing a potential risk. This pr seeks to stricten the rule in ante decorator.

Full e2e test case is refactored in place of old EditValidatorAccountSequence with blocks simulation to ensure checktx and delivertx accSeq invariant when failed.

Report of required housekeeping

  • Github issue OR spec proposal link
  • Wrote tests
  • Updated API documentation (client/lcd/swagger-ui/swagger.yaml)
  • Added a relevant changelog entry: clog add [section] [stanza] [message]

(FOR ADMIN) Before merging

  • Added appropriate labels to PR
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)
  • Confirm added tests are consistent with the intended behavior of changes
  • Ensure all tests pass

Copy link
Collaborator

@fragwuerdig fragwuerdig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's cool. Thx Vinh.

@nghuyenthevinh2000 nghuyenthevinh2000 merged commit cf55a25 into main Nov 28, 2023
16 checks passed
@nghuyenthevinh2000 nghuyenthevinh2000 deleted the dyncomm-test-refactor branch November 28, 2023 13:48
expertdicer pushed a commit to Genuine-labs/terra-classic that referenced this pull request Jan 28, 2024
expertdicer pushed a commit to Genuine-labs/terra-classic that referenced this pull request Jan 28, 2024
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.

None yet

2 participants