Skip to content

Bug when pressing the buy or sell button repeatedly #161

@Catrya

Description

@Catrya

If I press the Buy or Sell button multiple times in a row,

  • Mostro gives me this error in the logs:
2025-07-16T22:30:33.719671Z WARN mostrod::app: Error unwrapping gift

in other order

2025-07-16T22:46:50.504661Z  WARN mostrod::app: Signature verification failed: sender a86651962108b488de36fe60c5024036065969bc7083969634b4c4a52424cf57 does not match rumor pubkey 00496bc2aa8d3fef04a8fc16edb3a7aeb2a4c74c4c4a8193782f7e0a16e1d770
  • The trade index increases every time I tap it (my trade infdex went from 1 to 10)

  • When I finally get the message to sen the invoice, which I do, I can't continue because Mostro sends cant_do\":\"pending_order_exists

This can happen even if the user doesn't do it with malicious intent. If their internet connection is slow, they might hit the Buy or Sell button multiple times, thinking it's not working.

This is related to issue #35

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions