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

Remove transactions from Consensus struct #1786

Merged
merged 4 commits into from
Sep 21, 2023
Merged

Conversation

bfish713
Copy link
Collaborator

We only use transactions in the new transactions task so it doesn't need to be in the consensus type. This avoids write locking consensus in the transactions task. We still need a read lock to update the metrics but this should still be an improvement. Also transactions no longer belonged in the main consensus struct because transactions should be the responsibility of the builder.

Closes: #1503

Copy link
Member

@shenkeyao shenkeyao left a comment

Choose a reason for hiding this comment

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

LGTM!

@bfish713 bfish713 merged commit 32d9577 into main Sep 21, 2023
@bfish713 bfish713 deleted the bf/remove-consensus-txns branch September 21, 2023 19:09
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.

Remove Transaction Handling logic
2 participants