Skip to content

Implement SetMap and use it in XP-chain mempools #2555

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

Merged
merged 8 commits into from
Dec 29, 2023
Merged

Conversation

StephenButtolph
Copy link
Contributor

@StephenButtolph StephenButtolph commented Dec 28, 2023

Why this should be merged

Currently the X-chain and P-chain mempools do not evict transactions from when a conflicting transaction is issued or accepted in a block.

How this works

This modifies the Remove function to remove conflicting transactions in addition to the transaction requested to be removed.

How this was tested

  • CI
  • Additional unit tests

@StephenButtolph StephenButtolph self-assigned this Dec 28, 2023
@StephenButtolph StephenButtolph added the vm This involves virtual machines label Dec 28, 2023
@StephenButtolph StephenButtolph added this to the v1.10.18 milestone Dec 28, 2023
@StephenButtolph StephenButtolph changed the title Implement SetMap and use it in X-chain mempool Implement SetMap and use it in XP-chain mempools Dec 28, 2023
Copy link

@danlaine danlaine left a comment

Choose a reason for hiding this comment

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

left more nits in #2556 but looks correct

Co-authored-by: Stephen Buttolph <stephen@avalabs.org>
@StephenButtolph StephenButtolph added this pull request to the merge queue Dec 29, 2023
Merged via the queue into dev with commit 60a8158 Dec 29, 2023
@StephenButtolph StephenButtolph deleted the set-map branch December 29, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vm This involves virtual machines
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants