diff options
| author | practicalswift <[email protected]> | 2019-01-17 16:13:58 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-02-01 15:32:16 -0500 |
| commit | fa2a69fcb92c7f13c07f982c46df8a64e577dab9 (patch) | |
| tree | e2820199a1048889cf26a8f46b193699b4649ccb /src/validation.h | |
| parent | Merge #15235: Do not import private keys to wallets with private keys disabled (diff) | |
| download | discoin-fa2a69fcb92c7f13c07f982c46df8a64e577dab9.tar.xz discoin-fa2a69fcb92c7f13c07f982c46df8a64e577dab9.zip | |
doc: Add cs_main lock annotations for mapBlockIndex
Diffstat (limited to 'src/validation.h')
| -rw-r--r-- | src/validation.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.h b/src/validation.h index b16d8438d..49f73e4c9 100644 --- a/src/validation.h +++ b/src/validation.h @@ -151,7 +151,7 @@ extern CBlockPolicyEstimator feeEstimator; extern CTxMemPool mempool; extern std::atomic_bool g_is_mempool_loaded; typedef std::unordered_map<uint256, CBlockIndex*, BlockHasher> BlockMap; -extern BlockMap& mapBlockIndex; +extern BlockMap& mapBlockIndex GUARDED_BY(cs_main); extern uint64_t nLastBlockTx; extern uint64_t nLastBlockWeight; extern const std::string strMessageMagic; @@ -288,7 +288,7 @@ uint64_t CalculateCurrentUsage(); /** * Mark one block file as pruned. */ -void PruneOneBlockFile(const int fileNumber); +void PruneOneBlockFile(const int fileNumber) EXCLUSIVE_LOCKS_REQUIRED(cs_main); /** * Actually unlink the specified files |