From e20a4ddc76df695f43ea745ac8204029c8e8537a Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 18 Jul 2015 10:25:22 +0100 Subject: blockchain: fix testnet syncing (to not use blocks.dat) These are mainnet blocks, and would cause syncing on testnet to reject all incoming blocks. --- src/cryptonote_core/blockchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index ea107abb6..342322726 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -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)); #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) { -- cgit v1.2.3