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

Move DB lock guard to later stage #8383

Closed

Conversation

SChernykh
Copy link
Contributor

It's important to take the DB lock after m_tx_pool lock when get_block_template RPC is run in parallel with a new block being added, otherwise it will return the old data.

@SChernykh
Copy link
Contributor Author

@j-berman please review.

It's important to take the DB lock after m_tx_pool lock when get_block_template RPC is run in parallel with a new block being added, otherwise it will return the old data.
@SChernykh SChernykh force-pushed the fix_get_block_template branch from 031afb8 to c280e41 Compare June 13, 2022 05:54
@selsta
Copy link
Collaborator

selsta commented Jun 13, 2022

I think this can be closed? We will instead revert the other patch for now.

@SChernykh SChernykh closed this Jun 13, 2022
@SChernykh SChernykh deleted the fix_get_block_template branch July 22, 2022 11:45
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