From 98e882467f96c042ebe38f703ce7beea4b2c22ba Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 9 Oct 2017 23:06:42 +0200 Subject: [PATCH] =?UTF-8?q?Add=20mutex=20requirement=20for=20AddToCompactE?= =?UTF-8?q?xtraTransactions(=E2=80=A6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The vector `vExtraTxnForCompact`, which is guarded by the mutex `cs_main`, is accessed in `AddToCompactExtraTransactions(…)`. Cherry-picked from: 76ea17c7964c15dd90e10c2c257cdeb5847b3d69 --- src/net_processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 557b04e9cc8..e2cdf02007d 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -745,7 +745,7 @@ void UnregisterNodeSignals(CNodeSignals& nodeSignals) // mapOrphanTransactions // -void AddToCompactExtraTransactions(const CTransactionRef& tx) +void AddToCompactExtraTransactions(const CTransactionRef& tx) EXCLUSIVE_LOCKS_REQUIRED(cs_main) { size_t max_extra_txn = GetArg("-blockreconstructionextratxn", DEFAULT_BLOCK_RECONSTRUCTION_EXTRA_TXN); if (max_extra_txn <= 0)