From 76ea17c7964c15dd90e10c2c257cdeb5847b3d69 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 9 Oct 2017 23:06:42 +0200 Subject: =?UTF-8?q?Add=20mutex=20requirement=20for=20AddToCompactExtraTran?= =?UTF-8?q?sactions(=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(…)`. --- src/net_processing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/net_processing.cpp') 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) -- cgit v1.2.3