diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-10-09 23:06:42 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-11-06 17:41:02 +0100 |
commit | 76ea17c7964c15dd90e10c2c257cdeb5847b3d69 (patch) | |
tree | 831f95863a08a2a5808f0aff148eb7f47094c461 /src | |
parent | 4616c825a4530042983186a3521a6bfe650b5b67 (diff) |
Add mutex requirement for AddToCompactExtraTransactions(…)
The vector `vExtraTxnForCompact`, which is guarded by the mutex
`cs_main`, is accessed in `AddToCompactExtraTransactions(…)`.
Diffstat (limited to 'src')
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 7fced41d4f..17c354319a 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -560,7 +560,7 @@ bool GetNodeStateStats(NodeId nodeid, CNodeStateStats &stats) { // mapOrphanTransactions // -void AddToCompactExtraTransactions(const CTransactionRef& tx) +void AddToCompactExtraTransactions(const CTransactionRef& tx) EXCLUSIVE_LOCKS_REQUIRED(cs_main) { size_t max_extra_txn = gArgs.GetArg("-blockreconstructionextratxn", DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN); if (max_extra_txn <= 0) |