aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/blockchain.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-08-07 22:10:09 +0200
committerRiccardo Spagni <ric@spagni.net>2017-08-07 22:10:09 +0200
commit62610a3a53c8cab1f846aa37c5b4d7793541ae43 (patch)
treee24b094936692b1458651180ca73d4478c802037 /src/cryptonote_core/blockchain.cpp
parentMerge pull request #2224 (diff)
parentblockchain: skip checking tx semantics in embedded block hash range (diff)
downloadmonero-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.cpp9
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();