Skip to content

Prune the transaction from pool instead of removing it as invalid#1480

Merged
liuchengxu merged 1 commit intomainfrom
prune-tx-instead-of-remove-invalid
May 31, 2023
Merged

Prune the transaction from pool instead of removing it as invalid#1480
liuchengxu merged 1 commit intomainfrom
prune-tx-instead-of-remove-invalid

Conversation

@liuchengxu
Copy link
Copy Markdown
Contributor

All the existing usages of remove_tx_from_tx_pool are to remove a ready transaction from the pool if I'm not wrong, this PR refactors it into prune_tx_from_pool, removing such transactions using prune_known instead of marking them as invalid and causing the same transaction banned.

Close #1399

Code contributor checklist:

@liuchengxu liuchengxu requested a review from NingLin-P May 31, 2023 03:42
Copy link
Copy Markdown
Contributor

@NingLin-P NingLin-P left a comment

Choose a reason for hiding this comment

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

Thanks!

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.

thread 'tests::duplicated_and_stale_bundle_should_be_rejected' panicked at 'assertion failed: (left == right)

2 participants