Skip to content

hotfix: head-lag Solana measured as a per-transaction race (cherry-pick of #2388) - #2389

Merged
Flotapponnier merged 1 commit into
mainfrom
hotfix/head-lag-solana-race
Sep 16, 2026
Merged

Flotapponnier merged 1 commit into
mainfrom
hotfix/head-lag-solana-race

Conversation

@Flotapponnier

Copy link
Copy Markdown
Collaborator

Cherry-pick of #2388 only (harness race.go + spec), nothing else from dev. The three agg Railway probes build from main, so merging deploys them.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HJgbZCqjR4nvCfcJSzofbw

…port the trade; First to report panel (#2388)

Solana has no on-chain timestamp below one second, so measuring each
provider against the timestamp it sends compared conventions: Mobula's
`date` is its ingestion time (a constant 0.10 s from Singapore, 0.01 s
from Paris), Serialized's `at` is blockTime in whole seconds (0.75 s).
Against a common clock the two feeds are 10 to 30 ms apart. No RPC
WebSocket we can hold precedes their geysers: mainnet-beta and Helius
land ~110 ms after both on every trade, Alchemy is level on half the
trades and 3.5 s late or absent on the other half.

race.go runs a per-transaction race on every chain from the deferred
matcher's emissions, our node included: head_lag_first_total,
head_lag_races_total and a rolling 24 h head_lag_first_share_pct. On
raceChains (Solana) head_lag_seconds is the lag behind the first arrival;
late pollers (GeckoTerminal, 15-100 s) are measured against the same
first arrival for ten minutes. Validated from Paris over 11 trades:
Mobula first 91 %, Serialized 27 % (ties count for both), node 0 %;
headline Mobula 0.000 s, Serialized 0.010 s.

Spec: methodology and FAQ rewritten for Solana, First to report metric
panel, probe placement note (all three probes ran in Singapore until
2026-09-15).

Claude-Session: https://claude.ai/code/session_01HJgbZCqjR4nvCfcJSzofbw

Co-authored-by: Flotapponnier <florent@mobula.io>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
(cherry picked from commit 87dd01a)
@Flotapponnier
Flotapponnier merged commit 0103ebc into main Sep 16, 2026
1 check failed
@Flotapponnier
Flotapponnier deleted the hotfix/head-lag-solana-race branch September 16, 2026 10:11
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