|
|
@ -2009,10 +2009,13 @@ bool Blockchain::check_tx_inputs(const transaction& tx, uint64_t* pmax_used_bloc
|
|
|
|
boost::thread_group threadpool;
|
|
|
|
boost::thread_group threadpool;
|
|
|
|
|
|
|
|
|
|
|
|
std::auto_ptr < boost::asio::io_service::work > work(new boost::asio::io_service::work(ioservice));
|
|
|
|
std::auto_ptr < boost::asio::io_service::work > work(new boost::asio::io_service::work(ioservice));
|
|
|
|
for (int i = 0; i < threads; i++)
|
|
|
|
if(threads > 1)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
threadpool.create_thread(boost::bind(&boost::asio::io_service::run, &ioservice));
|
|
|
|
for (int i = 0; i < threads; i++)
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
threadpool.create_thread(boost::bind(&boost::asio::io_service::run, &ioservice));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#define KILL_IOSERVICE() \
|
|
|
|
#define KILL_IOSERVICE() \
|
|
|
|
if(threads > 1) \
|
|
|
|
if(threads > 1) \
|
|
|
|