mirror of
https://github.com/monero-project/monero.git
synced 2026-01-07 02:04:02 -08:00
Fix potential race with parallel processing of txes/signatures/blocks
This commit is contained in:
@@ -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; \
|
||||
|
||||
Reference in New Issue
Block a user