Merge pull request #343

e20a4dd blockchain: fix testnet syncing (to not use blocks.dat) (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2015-07-18 22:58:59 +02:00
commit 5a26676932
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -309,7 +309,7 @@ bool Blockchain::init(BlockchainDB* db, const bool testnet)
m_async_pool.create_thread(boost::bind(&boost::asio::io_service::run, &m_async_service)); m_async_pool.create_thread(boost::bind(&boost::asio::io_service::run, &m_async_service));
#if defined(PER_BLOCK_CHECKPOINT) #if defined(PER_BLOCK_CHECKPOINT)
if (m_fast_sync && get_blocks_dat_start() != nullptr) if (m_fast_sync && !testnet && get_blocks_dat_start() != nullptr)
{ {
if (get_blocks_dat_size() > 4) if (get_blocks_dat_size() > 4)
{ {