Skip to content

Allow multiple FillOrder v1 txs to co-exist in the mempool #1937

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

Open
wants to merge 1 commit into
base: fill_order_input_no_sig
Choose a base branch
from

Conversation

ImplOfAnImpl
Copy link
Contributor

Previously, mempool's enum TxDependency's OrderV1Account variant only contained the order id (through AccountType::Order), which would make all transactions with order v1 inputs for the same order conflict with each other.

The fix that I've ended up with is that I've just removed the OrderV1Account variant from TxDependency.
This is OK because we rely on the tx verifier to check for conflicts anyway.

I also cleaned up TxDependency a little, removing the redundant struct TxAccountDependency.

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.

1 participant