diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-08-07 22:10:09 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-08-07 22:10:09 +0200 |
commit | 62610a3a53c8cab1f846aa37c5b4d7793541ae43 (patch) | |
tree | e24b094936692b1458651180ca73d4478c802037 /src/cryptonote_core/blockchain.cpp | |
parent | Merge pull request #2224 (diff) | |
parent | blockchain: skip checking tx semantics in embedded block hash range (diff) | |
download | monero-62610a3a53c8cab1f846aa37c5b4d7793541ae43.tar.xz |
Merge pull request #2225
5d91b26c blockchain: skip checking tx semantics in embedded block hash range (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/blockchain.cpp')
-rw-r--r-- | src/cryptonote_core/blockchain.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp index 792bee8d1..e377c0f53 100644 --- a/src/cryptonote_core/blockchain.cpp +++ b/src/cryptonote_core/blockchain.cpp @@ -4171,6 +4171,15 @@ void Blockchain::load_compiled_in_block_hashes() } #endif +bool Blockchain::is_within_compiled_block_hash_area(uint64_t height) const +{ +#if defined(PER_BLOCK_CHECKPOINT) + return height < m_blocks_hash_check.size(); +#else + return false; +#endif +} + void Blockchain::lock() { m_blockchain_lock.lock(); |