Skip to content

v0.23.1 — swap confirms no longer depend on the RPC websocket

Choose a tag to compare

@CryptoGnome CryptoGnome released this 24 Aug 23:45
· 57 commits to main since this release
88fd4cc
  • The 429 storm was the cause, not background noise. web3.js implements confirmTransaction with an onSignature websocket 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.