Skip to content

[Fix] Use original transaction ordering in speculation#2421

Merged
howardwu merged 2 commits intomainnet-stagingfrom
fix/tx-ordering
Apr 5, 2024
Merged

[Fix] Use original transaction ordering in speculation#2421
howardwu merged 2 commits intomainnet-stagingfrom
fix/tx-ordering

Conversation

@raychu86
Copy link
Collaborator

@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
@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