core: cache tx and block hashes in the respective classes

An idea from smooth
This commit is contained in:
moneromooo-monero
2017-03-22 18:01:09 +00:00
parent 72f38bcc91
commit f065234b71
6 changed files with 134 additions and 2 deletions

View File

@@ -355,9 +355,11 @@ namespace cryptonote
if(check_hash(h, diffic))
{
bl.hash_valid = false;
return true;
}
}
bl.hash_valid = false;
return false;
}
//-----------------------------------------------------------------------------------------------------