diff options
author | Matt Corallo <git@bluematt.me> | 2018-02-06 13:51:44 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2018-02-06 13:51:44 -0500 |
commit | 85aa8398f5d13c659299b81cdae377462b4f8316 (patch) | |
tree | 2d1fd73c3efdec208b4e607ea403a38275cec668 /src/chain.h | |
parent | 1462bde767a121233118c04c5629bd9de1ba0f16 (diff) | |
download | bitcoin-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