-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 already spent InputID
s
#2229
Conversation
It seems check at |
The logic change in |
Thank you for explanation! I misunderstood it. |
Motivation
This PR adds logic to
VM::atomic_speculate
to track spentInputID
s and abort transactions that attempt to spend anInputID
that was already spent in this block.Note: We may want to use the
InputStore::get_speculative
instead of per block trackers inatomic_speculate
.Related to: https://github.com/AleoHQ/snarkOS/pull/2852
Test Plan
A test has been added to check that the possible double spends are caught and aborted.