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

Handle DB.tx better #39

Open
vaibhavchellani opened this issue Oct 29, 2020 · 0 comments
Open

Handle DB.tx better #39

vaibhavchellani opened this issue Oct 29, 2020 · 0 comments

Comments

@vaibhavchellani
Copy link
Contributor

Right now we create a DB clone and generate a database transaction for per tx state updates, we rollback the state updates if the processTx turns out to be invalid.

We return the DB clone that was used to generate DB.Tx to another function so that it can rollback tx incase of invalid tx.

We want to find out a better way to do the above, while the current way works its extremely smelly

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