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

Double check the domain transaction validity before putting it into bundle #2186

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

NingLin-P
Copy link
Member

@NingLin-P NingLin-P commented Oct 31, 2023

This PR fixes the race condition issue mentioned at #1731 (comment).

Double check the transaction validity, because the tx pool are re-validate the transaction in pool asynchronously so there is a race condition that the operator imported a domain block and starts producing bundle immediately before the re-validation based on the latest block is finished, cause the bundle contains illegal tx accidentally and being considered as invalid bundle and slashing on the honest operator.

I tried to handle #2184 in this PR, but found that it required more work on the illegal tx fraud proof (which is under development by @ParthDesai ) so gave up.

Code contributor checklist:

vedhavyas
vedhavyas previously approved these changes Nov 1, 2023
Copy link
Contributor

@vedhavyas vedhavyas left a comment

Choose a reason for hiding this comment

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

One nit. LGTM

Co-authored-by: Vedhavyas Singareddi <vedhavyas.singareddi@gmail.com>
Merged via the queue into main with commit c0f905f Nov 1, 2023
10 checks passed
@NingLin-P NingLin-P deleted the bundle-check branch November 1, 2023 19:16
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