aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-26 02:21:01 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2017-03-26 02:21:01 +0100
commita96f9baeb49bfd24e25403852587aaab3d0b2e0c (patch)
tree9a9406daeb8b4bf2ad342b3e4faa6f26669e50fe /src
parentMerge pull request #1925 (diff)
downloadmonero-a96f9baeb49bfd24e25403852587aaab3d0b2e0c.tar.xz
core: disable tx/block hash cache
Looks like it doesn't work on win64
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_basic/cryptonote_format_utils.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp
index 745dfb72e..edea8862f 100644
--- a/src/cryptonote_basic/cryptonote_format_utils.cpp
+++ b/src/cryptonote_basic/cryptonote_format_utils.cpp
@@ -658,6 +658,8 @@ namespace cryptonote
//---------------------------------------------------------------
bool get_transaction_hash(const transaction& t, crypto::hash& res, size_t* blob_size)
{
+ return calculate_transaction_hash(t, res, blob_size);
+#if 0
if (t.is_hash_valid())
{
#ifdef ENABLE_HASH_CASH_INTEGRITY_CHECK
@@ -688,6 +690,7 @@ namespace cryptonote
t.set_blob_size_valid(true);
}
return true;
+#endif
}
//---------------------------------------------------------------
bool get_transaction_hash(const transaction& t, crypto::hash& res, size_t& blob_size)
@@ -733,6 +736,8 @@ namespace cryptonote
//---------------------------------------------------------------
bool get_block_hash(const block& b, crypto::hash& res)
{
+ return calculate_block_hash(b, res);
+#if 0
if (b.is_hash_valid())
{
#ifdef ENABLE_HASH_CASH_INTEGRITY_CHECK
@@ -749,6 +754,7 @@ namespace cryptonote
b.hash = res;
b.set_hash_valid(true);
return true;
+#endif
}
//---------------------------------------------------------------
crypto::hash get_block_hash(const block& b)