aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/cryptonote_core.cpp
diff options
context:
space:
mode:
authorAlexander Blair <snipa@jagtech.io>2021-01-01 22:33:27 -0800
committerAlexander Blair <snipa@jagtech.io>2021-01-01 22:33:27 -0800
commit3bf0721ae603f3efd8aeaa8e44b41b6c47bd4b83 (patch)
tree1513edd3ee6ed333a9312e5f2705c14a16a74b73 /src/cryptonote_core/cryptonote_core.cpp
parent175aa2497a44ca9e47e0d99d8f9b3ce1d3f81648 (diff)
parent0aa541b3617563d41644e7d0beeb8e4e8325fd6d (diff)
downloadmonzero-core-3bf0721ae603f3efd8aeaa8e44b41b6c47bd4b83.tar.gz
monzero-core-3bf0721ae603f3efd8aeaa8e44b41b6c47bd4b83.tar.xz
monzero-core-3bf0721ae603f3efd8aeaa8e44b41b6c47bd4b83.zip
Merge pull request #7246
0aa541b36 protocol: more sanity checks in new chain block hashes (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_core/cryptonote_core.cpp')
-rw-r--r--src/cryptonote_core/cryptonote_core.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_core.cpp b/src/cryptonote_core/cryptonote_core.cpp
index 507c47a51..12125fb9d 100644
--- a/src/cryptonote_core/cryptonote_core.cpp
+++ b/src/cryptonote_core/cryptonote_core.cpp
@@ -1625,9 +1625,14 @@ namespace cryptonote
return m_mempool.get_transactions_count(include_sensitive_txes);
}
//-----------------------------------------------------------------------------------------------
- bool core::have_block(const crypto::hash& id) const
+ bool core::have_block_unlocked(const crypto::hash& id, int *where) const
{
- return m_blockchain_storage.have_block(id);
+ return m_blockchain_storage.have_block_unlocked(id, where);
+ }
+ //-----------------------------------------------------------------------------------------------
+ bool core::have_block(const crypto::hash& id, int *where) const
+ {
+ return m_blockchain_storage.have_block(id, where);
}
//-----------------------------------------------------------------------------------------------
bool core::parse_tx_from_blob(transaction& tx, crypto::hash& tx_hash, const blobdata& blob) const