aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-07-18 10:25:22 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-07-18 10:25:22 +0100
commite20a4ddc76df695f43ea745ac8204029c8e8537a (patch)
treeac350bbdeaf1299a2bd4af05ec51702ee042f23a /src/cryptonote_core
parentMerge pull request #341 (diff)
downloadmonero-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')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
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)
{