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

feat: remove conflict pending for reorg #2979

Conversation

zhangsoledad
Copy link
Member

@zhangsoledad zhangsoledad commented Aug 25, 2021

What problem does this PR solve?

Previously, some conflict pending transactions may not be clean immediately, this does not affect the correctness,but will make developers who rely on get_transaction get confused.

What is changed and how it works?

Now, conflict pending transactions will be clean immediately after the new best block is committed.

Check List

Tests

  • Unit test
    tx-pool/src/component/tests/pending.rs
  • Integration test

Release note

Title Only: Include only the PR title in the release note.

@zhangsoledad
Copy link
Member Author

benchmark

1 similar comment
@zhangsoledad
Copy link
Member Author

benchmark

@zhangsoledad zhangsoledad force-pushed the zhangsoledad/earlier_clean_confilct_pending_tx branch from 6f452d0 to d82b75d Compare September 2, 2021 14:29
@zhangsoledad zhangsoledad marked this pull request as ready for review September 3, 2021 05:18
@zhangsoledad zhangsoledad requested a review from a team as a code owner September 3, 2021 05:18
@zhangsoledad zhangsoledad force-pushed the zhangsoledad/earlier_clean_confilct_pending_tx branch 2 times, most recently from a3f0145 to a26d203 Compare September 7, 2021 09:08
@driftluo driftluo added the s:waiting-on-reviewers Status: Waiting for Review label Sep 8, 2021
Copy link
Member

@quake quake left a comment

Choose a reason for hiding this comment

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

#benchmark

@zhangsoledad zhangsoledad force-pushed the zhangsoledad/earlier_clean_confilct_pending_tx branch from a26d203 to 451c739 Compare September 16, 2021 11:08
@zhangsoledad zhangsoledad force-pushed the zhangsoledad/earlier_clean_confilct_pending_tx branch from 451c739 to 22ee4a1 Compare September 20, 2021 07:27
@zhangsoledad zhangsoledad force-pushed the zhangsoledad/earlier_clean_confilct_pending_tx branch from 22ee4a1 to d4ea30b Compare September 20, 2021 07:50
@zhangsoledad
Copy link
Member Author

bors r=driftluo,doitian

@bors bors bot merged commit 631b7a9 into nervosnetwork:develop Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s:waiting-on-reviewers Status: Waiting for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants