mirror of
https://github.com/monero-project/monero.git
synced 2024-12-25 13:09:24 +00:00
compile errors fixed when PER_BLOCK_CHECKPOINT not defined
This commit is contained in:
parent
e49c161987
commit
e29e8b1b99
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue