aboutsummaryrefslogtreecommitdiff
path: root/src/chain.h
diff options
context:
space:
mode:
authorMatt Corallo <git@bluematt.me>2018-02-06 13:51:44 -0500
committerMatt Corallo <git@bluematt.me>2018-02-06 13:51:44 -0500
commit85aa8398f5d13c659299b81cdae377462b4f8316 (patch)
tree2d1fd73c3efdec208b4e607ea403a38275cec668 /src/chain.h
parent1462bde767a121233118c04c5629bd9de1ba0f16 (diff)
downloadbitcoin-85aa8398f5d13c659299b81cdae377462b4f8316.tar.xz
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/chain.h')
0 files changed, 0 insertions, 0 deletions