-
Notifications
You must be signed in to change notification settings - Fork 38.7k
rest/rpc: Make mempoolinfo atomic #15474
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
Conversation
|
sounds good but need to review more thoroughly |
|
So what is the point of locking in the public mempool calls in the first place? If there is no reason, I'd rather remove those locks and pass the responsibility (and flexibility) to lock to the caller. |
|
@MarcoFalke I was going that way but the change started to get big. Since it's a recursive mutex (for now) this is also correct. But I agree with you that some should just require the lock. |
051ebac to
87a60eb
Compare
87a60eb to
e377846
Compare
e377846 rest/rpc: Make mempoolinfo atomic (João Barbosa) Pull request description: Make `/rest/mempool/info.json` endpoint and `getmempoolinfo` RPC atomic. ACKs for commit e37784: Tree-SHA512: 6b40844df813e180d68731fc263bd9a2c2a01fe143a4f5a8974e3e0023e6e2e1e9bc46669ddfdf44f0e47142feda2a2aad1ea02ef8837081e11522347f314b0b
Summary: This is a backport of Core [[bitcoin/bitcoin#15474 | PR15474]] Test Plan: `ninja all check-all` Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D8364
merge bitcoin#15474...bitcoin#16774: miscellaneous backports
Make
/rest/mempool/info.jsonendpoint andgetmempoolinfoRPC atomic.