compile errors fixed when PER_BLOCK_CHECKPOINT not defined

release-v0.4.0.1
rckngOpossum 8 years ago
parent e49c161987
commit e29e8b1b99

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

Loading…
Cancel
Save