diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-03-25 13:29:36 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-03-25 13:29:36 +0200 |
commit | e3d2b135e79b1284c07d27f7a23cb334bcfffe84 (patch) | |
tree | c3fd2442f842860a83d212d1d55f204d44c736bb /src/cryptonote_basic/miner.cpp | |
parent | Merge pull request #1921 (diff) | |
parent | core: avoid possible reordering bugs wth tx/bloch hash cache (diff) | |
download | monero-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.cpp | 4 |
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; } //----------------------------------------------------------------------------------------------------- |