aboutsummaryrefslogtreecommitdiff
path: root/src/httpserver.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2018-02-06 13:51:44 -0500
committerMatt Corallo <[email protected]>2018-02-06 13:51:44 -0500
commit85aa8398f5d13c659299b81cdae377462b4f8316 (patch)
tree2d1fd73c3efdec208b4e607ea403a38275cec668 /src/httpserver.cpp
parentMerge #12050: [trivial] Implements a virtual destructor on the BaseRequestHan... (diff)
downloaddiscoin-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