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
bug: swap send can pay twice when backing out mid-commit #1836
While a swap-routed send is committing, the user can back out of Confirm, get a fresh quote and pay the contact a second time.
Steps
Pay a contact through a Pubky Swaps route, with the regtest debug flag on.
Swipe to pay while the provider is slow to commit. bitkit-core's commit_route keeps polling a provider that answers pending for up to 60 s.
Back out of Confirm and tap Continue on Amount. A new quote replaces the first one.
The first commit returns. Because its quote is no longer current, its hold invoice is paid without moving the send to Pending.
The submission guard is released. Swiping the re-quoted Confirm commits and pays a second swap to the same address.
Fix options
Refuse a re-quote or commit for this send while a swap submission is running.
Disable back on Confirm during a swap commit.
The test swap route claim wait leaves a re-quoted send free to pay asserts the second commit today, so it needs updating with the fix. iOS twin: synonymdev/bitkit-ios#1266.
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.