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

Add locking of db for transaction operations #27

Open
nkorobkov opened this issue Dec 16, 2019 · 0 comments
Open

Add locking of db for transaction operations #27

nkorobkov opened this issue Dec 16, 2019 · 0 comments

Comments

@nkorobkov
Copy link
Owner

Now transaction logic does not block the row in DB. So double spendings and related issues may occur.

Need to implement pessimistic locking (like described in this blog post: https://hakibenita.com/how-to-manage-concurrency-in-django-models) With the use of related fields lock.

So that every transaction operation (process, substitute, decline) would block account while processing.

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

No branches or pull requests

1 participant