-
Notifications
You must be signed in to change notification settings - Fork 530
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
[TxPool] Reduce lock time in resetAccounts #459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Believe it or not I couldn't find anything to nitpick with the PR 🙂
I was about to write a comment on the lock release order, but then realized go runs defer
s in LIFO order.
Looks great, please check out @Kourin1996's comment for a minor optimization 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
Fixes EDGE-434
This PR reduces the amount of time account lock(s) are held during
resetAccounts
.Changes include
Checklist
Testing