cryptonote_basic: cache prunable hash for pruned txs

This commit is contained in:
Samy
2026-09-01 02:52:19 +02:00
parent 8e99188c5e
commit 70ac70101a
2 changed files with 29 additions and 0 deletions
@@ -1508,7 +1508,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));