Skip to content

fix(legacy-swap): make payment transaction broadcast interval smaller#2680

Merged
shamardy merged 4 commits intodevfrom
broadcast-interval
Nov 5, 2025
Merged

fix(legacy-swap): make payment transaction broadcast interval smaller#2680
shamardy merged 4 commits intodevfrom
broadcast-interval

Conversation

@dimxy
Copy link
Copy Markdown
Collaborator

@dimxy dimxy commented Nov 4, 2025

Summary

This PR reduces delays for legacy atomic swaps on the iOS platform.

When the Komodo Wallet iOS app transitions to the background, existing network connections may be disrupted. When the user returns the app to the foreground, running swaps should automatically resume and continue exchanging P2P messages.

However, we observed cases where swaps remained stuck in the MakerPaymentReceived or TakerPaymentSpent states for extended periods (sometimes over an hour).

Root Cause

The issue was caused by an excessively long P2P message re-broadcast interval (600 seconds). Since the default iOS auto-lock timeout is 30 seconds, the app often returned to the background before another broadcast could occur. As a result, p2p messages with payment transactions were not re-sent or received in time.

Fix

This PR reduces the P2P re-broadcast interval from 600 seconds to 15 seconds, ensuring that at least one re-broadcast happens while the app remains active in the foreground.

@dimxy dimxy self-assigned this Nov 4, 2025
@dimxy dimxy requested review from cipig and shamardy November 4, 2025 16:27
@dimxy dimxy marked this pull request as ready for review November 4, 2025 16:27
@shamardy shamardy merged commit e4d9d8e into dev Nov 5, 2025
20 of 26 checks passed
@shamardy shamardy deleted the broadcast-interval branch November 5, 2025 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants