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

core/txpool: move some validation to outside of mutex #1486

Merged
merged 1 commit into from
Apr 11, 2023
Merged

core/txpool: move some validation to outside of mutex #1486

merged 1 commit into from
Apr 11, 2023

Conversation

ucwong
Copy link
Member

@ucwong ucwong commented Apr 11, 2023

Currently, most of transaction validation while holding the txpool mutex: one exception being an early-on signature check.

This PR changes that, so that we do all non-stateful checks before we entering the mutex area. This means they can be performed in parallel, and to enable that, certain fields have been made atomic bools and uint64.

Currently, most of transaction validation while holding the txpool mutex: one exception being an early-on signature check.

This PR changes that, so that we do all non-stateful checks before we entering the mutex area. This means they can be performed in parallel, and to enable that, certain fields have been made atomic bools and uint64.
@ucwong ucwong marked this pull request as ready for review April 11, 2023 14:22
@ucwong ucwong merged commit 7ff27f7 into master Apr 11, 2023
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