You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: resume unfinished swaps until their claim confirms #1835
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.
Activity
ovitrif commentedon Nov 26, 2026
Moved to milestone 3.2.0: the fix, #1923, is on master, so it ships in 3.2.0.