Skip to content

Mainnet goes first, because the client picks accepts[0] - #82

Merged
holistis merged 1 commit into
mainfrom
mainnet-eerst
Oct 18, 2026
Merged

holistis merged 1 commit into
mainfrom
mainnet-eerst

Conversation

@holistis

Copy link
Copy Markdown
Owner

Measured, not preferred. The official client takes the first accepts entry it can
satisfy, so the order decides where an ordinary buyer pays.

Our first real mainnet attempt settled on testnet, with mainnet sitting in second
place. Receipt and settlement were fine; they were just on the wrong chain. No money
moved and the route was not proven either.

Whoever switches real money on wants a buyer to pay real money. A tester picks the
other line explicitly. With X402_MAINNET off there is still exactly one entry, so
nothing changes for anyone who has not opted in.

The test now asserts the order rather than assuming it.

Tests: 144 pass.

Measured, not preferred. The official client takes the first entry it can satisfy,
so the ORDER decides where an ordinary buyer pays. Our first real mainnet attempt
settled on TESTNET with mainnet sitting in second place: no money moved, and the
route was not proven either.

Whoever switches real money on wants a buyer to pay real money; a tester picks the
other line explicitly. With the flag off there is still exactly one entry and nothing
changes here.

Tests: 144 pass, with the order asserted rather than assumed.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
🔵 In progress
View logs
tokenizen a3cd5bb Oct 18 2026, 09:37 AM

@holistis
holistis merged commit 1062867 into main Oct 18, 2026
3 of 4 checks passed
@holistis
holistis deleted the mainnet-eerst branch October 18, 2026 09:37
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.

1 participant