diff options
| author | SChernykh <sergey.v.chernykh@gmail.com> | 2022-06-14 21:23:23 +0200 |
|---|---|---|
| committer | SChernykh <sergey.v.chernykh@gmail.com> | 2022-09-20 10:22:12 +0200 |
| commit | 6adf03cdc516a9236aac6dbd6f289750761b8d24 (patch) | |
| tree | dd316915f51aaae8d711832b0bc40374dd822ba5 /src/cryptonote_core/blockchain.cpp | |
| parent | 7cbae6ca988dedbe358ee5edbf9bdd610673a8ee (diff) | |
| download | monzero-core-6adf03cdc516a9236aac6dbd6f289750761b8d24.tar.gz monzero-core-6adf03cdc516a9236aac6dbd6f289750761b8d24.tar.xz monzero-core-6adf03cdc516a9236aac6dbd6f289750761b8d24.zip | |
Second thread pool for IO
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
| -rw-r--r-- | src/cryptonote_core/blockchain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index b4abde1ad..eee27987f 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -3434,7 +3434,7 @@ bool Blockchain::check_tx_inputs(transaction& tx, tx_verification_context &tvc, std::vector < uint64_t > results; results.resize(tx.vin.size(), 0); - tools::threadpool& tpool = tools::threadpool::getInstance(); + tools::threadpool& tpool = tools::threadpool::getInstanceForCompute(); tools::threadpool::waiter waiter(tpool); int threads = tpool.get_max_concurrency(); @@ -5137,7 +5137,7 @@ bool Blockchain::prepare_handle_incoming_blocks(const std::vector<block_complete return true; bool blocks_exist = false; - tools::threadpool& tpool = tools::threadpool::getInstance(); + tools::threadpool& tpool = tools::threadpool::getInstanceForCompute(); unsigned threads = tpool.get_max_concurrency(); blocks.resize(blocks_entry.size()); |
