diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-25 09:18:53 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-03-25 09:18:53 +0000 |
commit | 6d315459b6d001ecee3a6048ba70255b1ecf381a (patch) | |
tree | 2b3d8e5cf3d36017df566d46571a40a184cc54ec /src/cryptonote_basic/miner.cpp | |
parent | Merge pull request #1916 (diff) | |
download | monero-6d315459b6d001ecee3a6048ba70255b1ecf381a.tar.xz |
core: avoid possible reordering bugs wth tx/bloch hash cache
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; } //----------------------------------------------------------------------------------------------------- |