Skip to content

waitForConfirmation treats hard errors as a mempool miss #1

Description

@oliv3rdrt

In the poll loop, any error from GetTransaction is swallowed and retried, so it cannot tell 'still in the mempool' (expected 404) from a real failure like a wrong -indexer URL or a network outage. That makes the command spin for the full maxAttempts (~2 minutes) before failing on what is actually a hard error. Detect the not-found case specifically and keep retrying only on that; return other errors immediately.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions