aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_basic/miner.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-25 13:29:36 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-25 13:29:36 +0200
commite3d2b135e79b1284c07d27f7a23cb334bcfffe84 (patch)
treec3fd2442f842860a83d212d1d55f204d44c736bb /src/cryptonote_basic/miner.cpp
parentMerge pull request #1921 (diff)
parentcore: avoid possible reordering bugs wth tx/bloch hash cache (diff)
downloadmonero-e3d2b135e79b1284c07d27f7a23cb334bcfffe84.tar.xz
Merge pull request #1924
6d315459 core: avoid possible reordering bugs wth tx/bloch hash cache (moneromooo-monero)
Diffstat (limited to 'src/cryptonote_basic/miner.cpp')
-rw-r--r--src/cryptonote_basic/miner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cryptonote_basic/miner.cpp b/src/cryptonote_basic/miner.cpp
index 5a2a0d009..4c84e7eee 100644
--- a/src/cryptonote_basic/miner.cpp
+++ b/src/cryptonote_basic/miner.cpp
@@ -355,11 +355,11 @@ namespace cryptonote
if(check_hash(h, diffic))
{
- bl.hash_valid = false;
+ bl.invalidate_hashes();
return true;
}
}
- bl.hash_valid = false;
+ bl.invalidate_hashes();
return false;
}
//-----------------------------------------------------------------------------------------------------