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
v0.23.1 — swap confirms no longer depend on the RPC websocket
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The 429 storm was the cause, not background noise. web3.js implements confirmTransaction with an onSignaturewebsocket subscription, so a confirm is only as available as the RPC's ws endpoint. Helius has been answering ours with 429 once a second for hours, making every swap confirm guaranteed to time out at 30s while the transactions landed fine over HTTP. That is where pos#104's not confirmed in 30.00 seconds came from — v0.23.0 made the fallout recoverable, this removes the cause.
swapToSol / swapFromSol now confirm by polling getSignatureStatuses on the same HTTP endpoint everything else already uses. Both still attach the signature on timeout, so v0.23.0's recovery keeps working if a confirm fails for another reason.
Effect: closes stop taking an extra 30 seconds per swap and stop emitting spurious "swap failed" errors while the ws is refused.
The executor's own send() is unchanged — it already resolves timed-out attempts by polling via signatureFate(). Converting it away from the initial ws stall is the next step.
The ws 429 itself remains a Helius quota matter; the bot simply no longer depends on that transport for swaps.