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

[Fix] Use original transaction ordering in speculation #2421

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

raychu86
Copy link
Contributor

@raychu86 raychu86 commented Apr 4, 2024

Motivation

This PR updates prepare_for_speculate to output a sorted version of the valid and aborted transactions based on the order of the original transaction list. Previously, we were outputting the transactions based on our verification ordering.

Test Plan

A test was added to ensure that the order of transactions is preserved correctly.

@howardwu howardwu merged commit 13268a3 into mainnet-staging Apr 5, 2024
80 checks passed
@howardwu howardwu deleted the fix/tx-ordering branch April 5, 2024 03:54
@howardwu howardwu changed the title Use original transaction ordering in speculation [Fix] Use original transaction ordering in speculation Apr 5, 2024
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.

2 participants