mirror of
https://github.com/monero-project/monero.git
synced 2025-05-12 15:02:17 -04:00
core: cache tx and block hashes in the respective classes
An idea from smooth
This commit is contained in:
parent
72f38bcc91
commit
f065234b71
6 changed files with 134 additions and 2 deletions
|
@ -355,9 +355,11 @@ namespace cryptonote
|
|||
|
||||
if(check_hash(h, diffic))
|
||||
{
|
||||
bl.hash_valid = false;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
bl.hash_valid = false;
|
||||
return false;
|
||||
}
|
||||
//-----------------------------------------------------------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue