mirror of
https://github.com/wownero/wownero.git
synced 2026-10-25 02:18:33 +01:00
Merge pull request #11223
70ac701 cryptonote_basic: cache prunable hash for pruned txs (Samy)
ACKs: jpk68, selsta
This commit is contained in:
@@ -1509,7 +1509,10 @@ namespace cryptonote
|
||||
if (t.rct_signatures.type == rct::RCTTypeNull)
|
||||
hashes[2] = crypto::null_hash;
|
||||
else
|
||||
{
|
||||
hashes[2] = pruned_data_hash;
|
||||
t.set_prunable_hash(pruned_data_hash);
|
||||
}
|
||||
|
||||
// the tx hash is the hash of the 3 hashes
|
||||
res = cn_fast_hash(hashes, sizeof(hashes));
|
||||
|
||||
Reference in New Issue
Block a user