Skip to content

fix: drop retry for read-only simulations to prevent slow UX on 404s - #441

Open
martinshub-tech wants to merge 1 commit into
conduit-protocol:mainfrom
martinshub-tech:fix-readonly-retry
Open

fix: drop retry for read-only simulations to prevent slow UX on 404s#441
martinshub-tech wants to merge 1 commit into
conduit-protocol:mainfrom
martinshub-tech:fix-readonly-retry

Conversation

@martinshub-tech

Copy link
Copy Markdown

Closes #353

Problem: Previously, simulateReadOnly wrapped both getAccount and simulateTransaction in a withRetry block with up to 3 attempts and exponential backoff. Because a read-only simulation has no side effects, encountering a missing source account (getAccount returning a 404) or a slow RPC shouldn't trigger automatic retries. However, it still caused 3 sequential attempts with a backoff ranging from 500ms to 5s. This resulted in several seconds of unnecessary spinner on the UI for what is essentially a permanent failure.

Solution: Dropped the withRetry wrapper entirely for the read path in simulateReadOnly. Read-only operations don't require protection against partial state commits, and failing fast on 404s gives a significantly faster and more responsive UX. Transient transport failures will now bubble up immediately so the UI can handle or report them without stalling.

@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@martinshub-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

simulateReadOnly retries the whole pipeline (incl. getAccount) on transient errors

1 participant