Skip to content

Retry locking Monero #138

Description

@binarybaron

If Alice fails to lock her Monero on the first try, she will not try again.

There are a number of reasons the locking could fail:

  • Insufficient funds due to multiple swaps being started concurrently. One of which locks all the funds before the second one gets to.
  • Network errors (no connection to daemon, is common during syncing)

We should retry continously until the cancel timelock expires.

https://github.com/UnstoppableSwap/core/blob/4867d2713f5cdcc2aa282760ad88c12b17daf487/swap/src/protocol/alice/swap.rs#L113-L132

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    asbRelated to the ASB (maker side)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions