Skip to content

feat: resume unfinished swaps until their claim confirms #1835

Closed

Description

@ovitrif

Follow-up from #1732 (Pubky Swaps routes, behind PUBKY_SWAPS_ROUTES on regtest debug builds).

After the send screen finishes, a swap is advanced in the background for at most 60 minutes, and only while the app runs:

  • once the claim is broadcast, so bitkit-core rebroadcasts it until it confirms;
  • after the 10-minute claim wait runs out, so the wallet can still claim if the provider's lockup confirms late.

The claim pays a fixed 2 sat/vB with no fee bump. A claim that drops out of mempools after that hour, or a swap the app was closed during, is never advanced again. The provider settles the hold invoice once it sees the claim, so if the claim then misses the lock's timeout_block_height, the provider can refund its lockup and the contact receives nothing.

This cannot happen today: the flag is regtest-only and bitkit-core refuses mainnet commits. It needs fixing before the flag goes: resume unfinished swaps on start with pubky_swaps_advance and keep advancing each until its claim confirms or it fails.

Raised on the iOS twin: synonymdev/bitkit-ios#1170 (comment)

Activity

  1. added this to the 3.3.0 milestone on Nov 10, 2026
  2. self-assigned this
    on Nov 14, 2026
  3. modified the milestones: 3.3.0, 3.2.0 on Nov 26, 2026
  4. ovitrif commented on Nov 26, 2026

    @ovitrif
    CollaboratorAuthor

    Moved to milestone 3.2.0: the fix, #1923, is on master, so it ships in 3.2.0.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions