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

feat: add sql transactions to encumbering queries #4716

Merged

Conversation

hansieodendaal
Copy link
Contributor

@hansieodendaal hansieodendaal commented Sep 21, 2022

Description

Added SQL transactions to the encumbering queries to make the entire operation atomic.
(This is a further safeguard as a follow-on to #4663.)

Motivation and Context

It is possible that an independent thread can change the same SQL data (outputs) that were selected and verified to be encumbered just before it is encumbered.

Fixes #4701.

How Has This Been Tested?

Passed unit tests
Passed cucumber tests

sdbondi
sdbondi previously approved these changes Sep 23, 2022
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.

[console wallet] Add sql transaction to encumbering queries
3 participants