diff options
| author | Matt Corallo <[email protected]> | 2018-02-06 13:51:44 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2018-02-06 13:51:44 -0500 |
| commit | 85aa8398f5d13c659299b81cdae377462b4f8316 (patch) | |
| tree | 2d1fd73c3efdec208b4e607ea403a38275cec668 /src/httpserver.cpp | |
| parent | Merge #12050: [trivial] Implements a virtual destructor on the BaseRequestHan... (diff) | |
| download | discoin-85aa8398f5d13c659299b81cdae377462b4f8316.tar.xz discoin-85aa8398f5d13c659299b81cdae377462b4f8316.zip | |
Hold mempool.cs for the duration of ATMP.
This resolves an issue where getrawmempool() can race mempool
notification signals. Intuitively we use mempool.cs as a "read
lock" on the mempool with cs_main being the write lock, so holding
the read lock intermittently while doing write operations is
somewhat strange.
This also avoids the introduction of cs_main in getrawmempool()
which reviewers objected to in the previous fix in #12273
Diffstat (limited to 'src/httpserver.cpp')
0 files changed, 0 insertions, 0 deletions