core: cache tx and block hashes in the respective classes

An idea from smooth
This commit is contained in:
moneromooo-monero
2017-03-23 09:25:17 +00:00
parent 72f38bcc91
commit f065234b71
6 changed files with 134 additions and 2 deletions
+2
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;
}
//-----------------------------------------------------------------------------------------------------