aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-02 14:20:51 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-02 14:20:51 +0100
commit087373eccff1d651165baeae6ac1b0049faff53f (patch)
tree7665d0bdd32258f9848f206815537acb8e5ac92f /src/cryptonote_core/blockchain.cpp
parentMerge pull request #780 (diff)
downloadmonero-087373eccff1d651165baeae6ac1b0049faff53f.tar.xz
Fix potential race with parallel processing of txes/signatures/blocks
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r--src/cryptonote_core/blockchain.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 34810d983..dd4e9d14d 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -2159,6 +2159,7 @@ bool Blockchain::check_tx_inputs(const transaction& tx, tx_verification_context
if(ioservice_active) \
{ \
work.reset(); \
+ while (!ioservice.stopped()) ioservice.poll(); \
threadpool.join_all(); \
ioservice.stop(); \
ioservice_active = false; \