diff options
author | rckngOpossum <rckngOpossum@@users.noreply.github.com> | 2016-09-15 15:55:07 -0500 |
---|---|---|
committer | rckngOpossum <rckngOpossum@@users.noreply.github.com> | 2016-09-15 15:55:07 -0500 |
commit | e29e8b1b991e878c1629c04572d4a5ef8e7b9b67 (patch) | |
tree | f91368b4c27b3934f357aab3fcc8ca180a484f6c /src/cryptonote_core/blockchain.cpp | |
parent | compile errors fixed when DEBUG_CREATE_BLOCK_TEMPLATE defined (diff) | |
download | monero-e29e8b1b991e878c1629c04572d4a5ef8e7b9b67.tar.xz |
compile errors fixed when PER_BLOCK_CHECKPOINT not defined
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index cbc2315c6..83e6e40b0 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -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 { |