Skip to content

sign_tx with many outputs sometimes make speculos automation crash #48

@r4mmer

Description

@r4mmer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions