Skip to content

Conversation

@promag
Copy link
Contributor

@promag promag commented Feb 25, 2019

Make /rest/mempool/info.json endpoint and getmempoolinfo RPC atomic.

@geekastute
Copy link

sounds good but need to review more thoroughly

@maflcko
Copy link
Member

maflcko commented Mar 3, 2019

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.

@promag
Copy link
Contributor Author

promag commented Mar 3, 2019

@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.

@promag promag force-pushed the 2019-02-atomic-mempoolinfo branch from 051ebac to 87a60eb Compare March 8, 2019 15:44
@promag promag force-pushed the 2019-02-atomic-mempoolinfo branch from 87a60eb to e377846 Compare March 8, 2019 16:25
@maflcko maflcko merged commit e377846 into bitcoin:master Apr 17, 2019
maflcko pushed a commit that referenced this pull request Apr 17, 2019
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
@promag promag deleted the 2019-02-atomic-mempoolinfo branch April 17, 2019 15:17
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Nov 12, 2020
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
kwvg added a commit to kwvg/dash that referenced this pull request Nov 4, 2021
kwvg added a commit to kwvg/dash that referenced this pull request Nov 11, 2021
PastaPastaPasta added a commit to dashpay/dash that referenced this pull request Nov 12, 2021
pravblockc pushed a commit to pravblockc/dash that referenced this pull request Nov 18, 2021
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants