Skip to content

Conversation

@haardikk21
Copy link
Collaborator

@haardikk21 haardikk21 commented May 9, 2025

The Flashblocks RPC had a bug where it would panic if getTransactionByHash was used to load historical deposit transactions.

These transactions did not exist in the mempool (system transaction) and did not exist in the cache (historical transaction) but in the case of deposit transactions we would always try to fetch a receipt from the cache to populate deposit_receipt_version and deposit_nonce.

Since we did unwrap() without an error check in that path, it would cause a panic.

This PR attempts to fix that by pre-loading the deposit transaction receipt from eth_api in case a historical deposit transaction is attempted to be fetched via getTransactionByHash.

Edit; ignore the branch name. i thought the root cause was a race condition, it was not.

@haardikk21
Copy link
Collaborator Author

Closing in favor of #28

@haardikk21 haardikk21 closed this May 12, 2025
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