Merge pull request #11223

70ac701 cryptonote_basic: cache prunable hash for pruned txs (Samy)

ACKs: jpk68, selsta
This commit is contained in:
tobtoht
2026-09-09 20:14:57 +00:00
2 changed files with 29 additions and 0 deletions
@@ -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));