Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: api: return errors on failure to lookup an eth txn receipt #11329

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

Stebalien
Copy link
Member

@Stebalien Stebalien commented Oct 11, 2023

Related Issues

Part of #11325.

Proposed Changes

Return errors on failure to lookup an eth txn receipt.

All these cases here are actually errors and returning nil makes this hard to debug. We likely returned nil in the past to be "best effort" but, as far as I can tell, we should only hit these error cases if something is actually wrong.

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • If the PR affects users (e.g., new feature, bug fix, system requirements change), update the CHANGELOG.md and add details to the UNRELEASED section.
  • Tests exist for new functionality or change in behavior
  • CI is green

All these cases here are actually errors and returning `nil` makes this
hard to debug. We likely returned nil in the past to be "best effort"
but, as far as I can tell, we should only hit these error cases if
something is actually wrong.

part of #11325
@Stebalien Stebalien force-pushed the steb/eth-txn-error-checking branch from d31a46e to c9eacbf Compare October 24, 2023 15:28
Copy link
Contributor

@fridrik01 fridrik01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, there is though failing tests but doesn't likely to be related

@Stebalien Stebalien merged commit 6e22c08 into master Oct 24, 2023
@Stebalien Stebalien deleted the steb/eth-txn-error-checking branch October 24, 2023 19:13
@Stebalien
Copy link
Member Author

Yeah, there's an issue with drand testnet right now.

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.

2 participants