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

refactor(mempool): remove redandunt pub from account transaction inde… #423

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

MohammadNassar1
Copy link
Contributor

@MohammadNassar1 MohammadNassar1 commented Jul 9, 2024

…s struct of tx pool


This change is Reviewable

@MohammadNassar1 MohammadNassar1 requested a review from elintul July 9, 2024 15:11
@MohammadNassar1 MohammadNassar1 changed the title refactor(mempool): remove redundunt pub from account transaction inde… refactor(mempool): remove redandunt pub from account transaction inde… Jul 9, 2024
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.

Project coverage is 83.54%. Comparing base (cc32a70) to head (cf15439).

Files Patch % Lines
crates/mempool/src/transaction_pool.rs 66.66% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #423   +/-   ##
=======================================
  Coverage   83.54%   83.54%           
=======================================
  Files          37       37           
  Lines        1720     1720           
  Branches     1720     1720           
=======================================
  Hits         1437     1437           
  Misses        206      206           
  Partials       77       77           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@elintul elintul left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @MohammadNassar1)

a discussion (no related file):
A suggestion for a more succinct commit message: "make AccountTransactionIndex API private".



crates/mempool/src/transaction_pool.rs line 76 at r1 (raw file):

#[derive(Debug, Default)]
struct AccountTransactionIndex(HashMap<ContractAddress, BTreeMap<Nonce, TransactionReference>>);

No invariants on this mapping, it can be public.

Copy link
Contributor Author

@MohammadNassar1 MohammadNassar1 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @elintul)


crates/mempool/src/transaction_pool.rs line 76 at r1 (raw file):

Previously, elintul (Elin) wrote…

No invariants on this mapping, it can be public.

The struct is private, so its methods cannot be accessed publicly.

Copy link
Contributor Author

@MohammadNassar1 MohammadNassar1 left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @elintul)

a discussion (no related file):

Previously, elintul (Elin) wrote…

A suggestion for a more succinct commit message: "make AccountTransactionIndex API private".

Actually, I wanted to emphasize that it's redundant.


Copy link
Collaborator

@elintul elintul left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @MohammadNassar1)

@MohammadNassar1 MohammadNassar1 merged commit 025f4c3 into main Jul 10, 2024
18 checks passed
@MohammadNassar1 MohammadNassar1 deleted the mohammad/tx-pool/remove-redundunt-pub branch July 10, 2024 12:16
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