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: dont solely depend on the information from the L1 client to predict whether the transaction is committed #31

Merged
merged 2 commits into from
Feb 28, 2024

Conversation

bendanzhentan
Copy link
Contributor

@bendanzhentan bendanzhentan commented Jan 30, 2024

Based on the observation of testnet, MegaNode may have such a problem:

  • eth_getTransactionsCount's base on block height of X

  • eth_estimateGas's base block height is X-1

As a result of the inconsistent performance of different interfaces, we are not able to simply determine whether a withdrawal has been processed by using a nonce check.

The PR adds a local timestamp check for fault tolerance.

Copy link

@welkin22 welkin22 left a comment

Choose a reason for hiding this comment

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

LGTM

@bendanzhentan bendanzhentan force-pushed the fix-dont-rely-on-rpc-eth-gettransactionscount branch from b4474ad to 6bc5309 Compare February 3, 2024 12:03
@bendanzhentan bendanzhentan merged commit 017c6ac into main Feb 28, 2024
2 checks passed
@bendanzhentan bendanzhentan deleted the fix-dont-rely-on-rpc-eth-gettransactionscount branch February 28, 2024 09:36
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