compile errors fixed when PER_BLOCK_CHECKPOINT not defined

This commit is contained in:
rckngOpossum 2016-09-15 15:55:07 -05:00
parent e49c161987
commit e29e8b1b99
1 changed files with 3 additions and 1 deletions

View File

@ -2956,8 +2956,8 @@ leave:
// be a parameter?
// validate proof_of_work versus difficulty target
bool precomputed = false;
#if defined(PER_BLOCK_CHECKPOINT)
bool fast_check = false;
#if defined(PER_BLOCK_CHECKPOINT)
if (m_db->height() < m_blocks_hash_check.size())
{
auto hash = get_block_hash(bl);
@ -3758,6 +3758,7 @@ std::map<uint64_t, uint64_t> Blockchain:: get_output_histogram(const std::vector
return m_db->get_output_histogram(amounts, unlocked);
}
#if defined(PER_BLOCK_CHECKPOINT)
void Blockchain::load_compiled_in_block_hashes()
{
if (m_fast_sync && get_blocks_dat_start(m_testnet) != nullptr)
@ -3800,6 +3801,7 @@ void Blockchain::load_compiled_in_block_hashes()
}
}
}
#endif
bool Blockchain::for_all_key_images(std::function<bool(const crypto::key_image&)> f) const
{