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

Abort transactions with duplicated TransitionIDs #2312

Merged
merged 3 commits into from
Jan 20, 2024

Conversation

raychu86
Copy link
Contributor

@raychu86 raychu86 commented Jan 20, 2024

Motivation

This PR adds logic to VM::atomic_speculate to track TransitionIDs and abort transactions that attempt to create an TransitionID that was already included in this block or previous blocks.

Test Plan

A test has been added to check that different transactions can't produce the same TransitionID

Related PRs

Related to: #2229 and #2301
Fixes: #2262

@howardwu howardwu merged commit 84c4512 into testnet3 Jan 20, 2024
41 of 78 checks passed
@howardwu howardwu deleted the feat/duplicate-transition-ids branch January 20, 2024 20:12
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.

[Bug] Two transactions containing the same transition_id in a single batch will halt the network
2 participants