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

sign_tx with many outputs sometimes make speculos automation crash #48

Open
r4mmer opened this issue Feb 4, 2022 · 0 comments
Open
Labels
bug Something isn't working

Comments

@r4mmer
Copy link
Member

r4mmer commented Feb 4, 2022

Summary

Speculos automation sometimes cannot process the many interactions of confirming multiples outputs quickly enough.

Sometimes this makes the app reach a bad state when pytest sends information before the outputs are confirmed.
Sometimes the multiple requests during the automation process makes the simulator crash.

Solution

There are a few possible solutions for this.

  • Wait a certain amount of time before some commands, this does not fix the core issue but can make it less of a problem.
  • Use the events endpoint of speculos to wait until the automation reaches the desired state, also does not solve the core issue but we can know for sure when the problem was with the speculos automation.
  • Refactor to use client side automation, which makes tests more complicated but we will not depend on speculos automatiion
@r4mmer r4mmer added the bug Something isn't working label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant