mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
blockchain: fix testnet syncing (to not use blocks.dat)
These are mainnet blocks, and would cause syncing on testnet to reject all incoming blocks.
This commit is contained in:
parent
a092fcd607
commit
e20a4ddc76
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue