Skip to content

fix: patch deps with NAT traversal fixes (proven by Mac upload to NAT testnet)#30

Open
grumbach wants to merge 25 commits intoWithAutonomi:mainfrom
grumbach:fix/nat-traversal-patches
Open

fix: patch deps with NAT traversal fixes (proven by Mac upload to NAT testnet)#30
grumbach wants to merge 25 commits intoWithAutonomi:mainfrom
grumbach:fix/nat-traversal-patches

Conversation

@grumbach
Copy link
Copy Markdown
Contributor

@grumbach grumbach commented Apr 8, 2026

Proven by live testnet upload from Mac

3/3 uploads from macOS (31s clock skew) to a 14-node NAT testnet across 4 regions. Cold: 61s. Warm: 30-33s.

What this PR does

Adds a [patch] section to the workspace Cargo.toml pointing saorsa-core and saorsa-transport at branches with proven NAT traversal fixes:

Why a patch section

The client depends on ant-node via git (branch rc-2026.4.1), which transitively pulls saorsa-core and saorsa-transport. Cargo's [patch] overrides these transitive deps with the fix branches without modifying ant-node's Cargo.toml.

Once the fix PRs are merged into rc-2026.4.1, this patch section should be removed.

Build and test

cargo build --release --bin ant
# Then upload:
SECRET_KEY=... ./target/release/ant -b <bootstrap>:10000 --evm-network arbitrum-sepolia file upload /path/to/file

jacderida and others added 25 commits April 4, 2026 18:36
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Point at branches with 9 proven fixes (clock skew tolerance +
8 transport fixes) that enabled the first successful Mac upload
to a NAT-protected testnet.

Tested: 3/3 uploads from macOS (31s clock skew) to 14-node
NAT testnet across lon1/ams3/nyc1/sfo3. 30-33s warm uploads.

Dependencies:
- saorsa-core: grumbach/fix/clock-skew-tolerance (PR saorsa-labs/saorsa-core#77)
- saorsa-transport: grumbach/round4-combined (PR saorsa-labs/saorsa-transport#55)

Remove the [patch] section once those PRs are merged into rc-2026.4.1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants