core: avoid possible reordering bugs wth tx/bloch hash cache

This commit is contained in:
moneromooo-monero 2017-03-25 09:18:53 +00:00
parent 11e24bb2ba
commit 6d315459b6
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
4 changed files with 45 additions and 31 deletions

View file

@ -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;
}
//-----------------------------------------------------------------------------------------------------