From d95a5afee002c88e551b95709e0957c2fc855ed7 Mon Sep 17 00:00:00 2001 From: arkpar Date: Mon, 29 Jun 2015 22:21:53 +0200 Subject: [PATCH] fixed race condition in transaction queue --- libethereum/TransactionQueue.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libethereum/TransactionQueue.cpp b/libethereum/TransactionQueue.cpp index 8931ee218..8fcf3cfb6 100644 --- a/libethereum/TransactionQueue.cpp +++ b/libethereum/TransactionQueue.cpp @@ -220,6 +220,7 @@ bool TransactionQueue::remove_WITH_LOCK(h256 const& _txHash) unsigned TransactionQueue::waiting(Address const& _a) const { + ReadGuard l(m_lock); auto it = m_senders.equal_range(_a); unsigned ret = 0; for (auto i = it.first; i != it.second; ++i, ++ret) {}