Skip to content

Conversation

@ethanoroshiba
Copy link
Contributor

Summary

Simplified logical statements in transaction_priority_comparisons_should_be_consistent_nonce_diff().

Background

Previously there was an allow for clippy::nonminimal_bool. The reasoning behind it was to match documented behavior. This change is meant to explicitly state the expected behavior while still simplifying the boolean expressions. This is in response to this comment: #1561 (comment)

Changes

  • Simplified boolean expressions and moved the non-simplified versions to the comments where applicable to provide context on the documented behavior.

Testing

Passing all tests

Related Issues

closes #1583

@github-actions github-actions bot added the sequencer pertaining to the astria-sequencer crate label Sep 30, 2024
@ethanoroshiba ethanoroshiba changed the title chore(sequencer): rework transaction container test to avoid clippy allow chore(sequencer): simplify boolean expressions in transaction container Sep 30, 2024
@ethanoroshiba ethanoroshiba marked this pull request as ready for review October 2, 2024 16:08
@ethanoroshiba ethanoroshiba requested a review from a team as a code owner October 2, 2024 16:08
@ethanoroshiba ethanoroshiba added this pull request to the merge queue Oct 2, 2024
Merged via the queue into main with commit 6fdf4ea Oct 2, 2024
@ethanoroshiba ethanoroshiba deleted the ENG-875/nonminimal_bool branch October 2, 2024 16:37
steezeburger added a commit that referenced this pull request Oct 7, 2024
* main: (34 commits)
  feat(proto): add bundle and optimistic block apis (#1519)
  feat(sequencer)!: make empty transactions invalid  (#1609)
  chore(sequencer): simplify boolean expressions in `transaction container` (#1595)
  refactor(cli): merge argument parsing and command execution (#1568)
  feat(charts): astrotrek chart (#1513)
  chore(charts): genesis template to support latest changes (#1594)
  fix(ci): code freeze action fix (#1610)
  chore(sequencer)!: exclusively use Borsh encoding for stored data (ENG-768) (#1492)
  ci: code freeze through github actions (#1588)
  refactor(sequencer): use builder pattern for transaction container tests (#1592)
  feat(conductor)!: implement chain ID checks (#1482)
  chore(ci): upgrade audit-check (#1577)
  feat(sequencer)!: transaction categories on UnsignedTransaction (#1512)
  fix(charts): sequencer prometheus rules   (#1598)
  chore(all): Migrate all instances of `#[allow]` to `#[expect]` (#1561)
  chore(charts,sequencer-faucet): asset precision (#1517)
  chore(docs): endpoints (#1543)
  fix(docker): use target binary build param as name of image entrypoint (#1573)
  fix(ci): ibc bridge test timeout (#1587)
  Feature: Add `graph-node` to charts. (#1489)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sequencer pertaining to the astria-sequencer crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: rework transaction_priority_comparisons_should_be_consistent_nonce_diff() to avoid clippy allow

2 participants