aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-07-18 22:58:59 +0200
committerRiccardo Spagni <ric@spagni.net>2015-07-18 22:59:02 +0200
commit5a266769325d4d14e12405fdc763d02c57ec414e (patch)
treef9b6bc0fdb47d2df41317692ba2f36edc11756c8
parentMerge pull request #342 (diff)
parentblockchain: fix testnet syncing (to not use blocks.dat) (diff)
downloadmonero-5a266769325d4d14e12405fdc763d02c57ec414e.tar.xz
Merge pull request #343
e20a4dd blockchain: fix testnet syncing (to not use blocks.dat) (moneromooo-monero)
-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 ffd4e7869..cc2d6f821 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)
{