-
Notifications
You must be signed in to change notification settings - Fork 100
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
Feature proposal: Batch revert #445
Comments
@igordreher Hello! |
Hey @gfyrag, thanks for replying!
Yes and we use it already in some cases. But, we can't revert a single posting of a transaction.
We are making a wrapper around Ledger with a design that depends on this behavior to guarantee a consistent relation between transactions. About the batch not being available on v2, is there any remote possibility that this behavior remains available instead of being replaced? (Adding a bulk endpoint, instead of replacing the current batch endpoint) FYI @lucasfcnunes |
ping @gfyrag |
Any update?? |
Nothing? |
Is your feature request related to a problem? Please describe.
I would like to revert a bunch of related transactions together and only commit the reversion if none fails to revert.
Summary
Having a way to revert transactions in batch is important to guarantee that a batch of transactions can only be reverted if all can.
Solution proposal
Add an endpoint to revert a list of transactions and this would only revert the transactions if none fails to revert.
Another possible solution would be to add an endpoint to check if a transaction can be reverted.
Describe alternatives you've considered
Check if all transactions can be reverted (the source accounts have enough money) before reverting them one by one. This isn't a guarantee and it isn't clear what are all the rules that are used to verify if a transaction can be reverted (I didn't find it documented anywhere).
The text was updated successfully, but these errors were encountered: