-
Notifications
You must be signed in to change notification settings - Fork 101
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
Revert transaction #52
Comments
@altitude What do you think about adding a "Reverse" method to the Transaction struct in Then when the endpoint is hit, we will query for transaction using the ID in the URL, reverse the transaction using that method, and then post the new transaction to the ledger. |
Another consideration is that we should mark that a Transaction has been reverted - do you think this is best achieved with the metadata table? |
@henry-jackson sounds great to me! 1/ Sharing that vision for 2/ Awesome idea. Would go along well with the scheme concept we're working on for materialized transactions, where we introduce specific keys and values to use on the metadata table. I think I'd go for two meta fields addition on the reverted transaction upon successful commit of the reverting transaction:
|
Summary
We should be able to revert a transaction without having to build the reverse transaction
Proposal
Expected behaviors
Given the transaction:
The revert endpoint should attempt to commit the exact reverse transaction:
The text was updated successfully, but these errors were encountered: