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

Wait and retry on fail and loop functionalities are causing to repeat transactions #673

Open
juanenrisley opened this issue Apr 28, 2023 · 1 comment
Labels
a priority ★★★ bug 💥 Something isn't working

Comments

@juanenrisley
Copy link
Collaborator

juanenrisley commented Apr 28, 2023

While creating and deploying a new Shared Wallet, the use of a loop wait inside the waitAndRetryOnFail method is causing an error when no more retries are left. Thus there is a fail and a retry on the target call. This 2 methods need to be separated from each other so the wait and retry on fails happens and then a loop for waiting is used.

I found the error while debugging shared wallet creation. There was an incorrect condition for waiting organization fundation in the loop method and the loop was throwing an error each time it was done waiting. So the waitAndRetryOnFail method was retrying on that error, even if it was not an error from circles-core. This caused that when I was trying to fund the shared wallet with 1CRC, I ended up funding with 3CRC because the method has a default retry value of 3 times and was executing the transaction more times than requested.

@juanenrisley juanenrisley self-assigned this Apr 28, 2023
@juanenrisley juanenrisley added the bug 💥 Something isn't working label Apr 28, 2023
@louilinn
Copy link
Collaborator

This should be quite high priority but we shouldn't start it in parallel with too many other things. But its next in line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a priority ★★★ bug 💥 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants