Skip to content

Simplify removing txs in mempool#477

Merged
hvanz merged 7 commits intomainfrom
hernan/simplify-remove-tx-mempool
Mar 21, 2023
Merged

Simplify removing txs in mempool#477
hvanz merged 7 commits intomainfrom
hernan/simplify-remove-tx-mempool

Conversation

@hvanz
Copy link
Collaborator

@hvanz hvanz commented Mar 7, 2023

The method RemoveTxByKey is not used. In this PR, we called it in Update to replace code with the same functionality. Also, we remove the Boolean argument removeFromCache from removeTx, to simplify code readability.


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@hvanz hvanz self-assigned this Mar 7, 2023
@hvanz hvanz added the mempool label Mar 7, 2023
@hvanz hvanz marked this pull request as ready for review March 16, 2023 14:30
@hvanz hvanz requested a review from a team as a code owner March 16, 2023 14:30
Copy link
Collaborator

@sergio-mena sergio-mena left a comment

Choose a reason for hiding this comment

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

LGTM

@hvanz hvanz merged commit 7ab2dfb into main Mar 21, 2023
@hvanz hvanz deleted the hernan/simplify-remove-tx-mempool branch March 21, 2023 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants