diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-07-18 10:25:22 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-07-18 10:25:22 +0100 |
commit | e20a4ddc76df695f43ea745ac8204029c8e8537a (patch) | |
tree | ac350bbdeaf1299a2bd4af05ec51702ee042f23a /src/cryptonote_core/blockchain.cpp | |
parent | Merge pull request #341 (diff) | |
download | monero-e20a4ddc76df695f43ea745ac8204029c8e8537a.tar.xz |
blockchain: fix testnet syncing (to not use blocks.dat)
These are mainnet blocks, and would cause syncing on testnet to
reject all incoming blocks.
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |