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: eth: make tx hash immediately available in lookup db after submission #12219

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

rvagg
Copy link
Member

@rvagg rvagg commented Jul 12, 2024

Fixes: #12218

See #12218 for gory details on why this is necessary. This should fix any case where someone does an eth sendRawTransaction and it's not immediately available via other APIs that expect to be able to translate the eth tx hash to a Filecoin message CID (internally or via EthGetMessageCidByTransactionHash or EthGetTransactionHashByCid).

@rvagg rvagg added the skip/changelog This change does not require CHANGELOG.md update label Jul 12, 2024
@rvagg rvagg requested review from snissn and aarshkshah1992 July 12, 2024 06:17
@aarshkshah1992
Copy link
Contributor

@rvagg

Even in the current flow, messages that have not landed on chain will be added to this txn -> hash DB on message pool submission (really, it's just a mapping without any guarantees of whether the txn has landed or not). So, this change is fine. However, we should NOT error out the API just because the DB update fails.

@rvagg rvagg force-pushed the rvagg/fix-txhashlookup-immediate branch from 07a7793 to 2b662bf Compare July 15, 2024 06:34
@aarshkshah1992
Copy link
Contributor

Please feel free to merge once CI is green.

@rvagg rvagg merged commit 9714670 into master Jul 15, 2024
79 checks passed
@rvagg rvagg deleted the rvagg/fix-txhashlookup-immediate branch July 15, 2024 08:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog This change does not require CHANGELOG.md update
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky test: eth_deploy TestDeployment transaction hash race
2 participants