aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-05-10 16:49:13 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-05-10 16:49:13 -0500
commit436ca13722f00bb0ed3c3160396952471e4c4ab4 (patch)
treeb6b07b8996316178286a7616458069a68fced214 /src/blockchain_db
parentMerge pull request #8262 (diff)
parentPreserve commitment format inside transactions (diff)
downloadmonero-436ca13722f00bb0ed3c3160396952471e4c4ab4.tar.xz
Merge pull request #8277
baee2c0 Preserve commitment format inside transactions (kayabaNerve)
Diffstat (limited to 'src/blockchain_db')
-rw-r--r--src/blockchain_db/blockchain_db.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/blockchain_db/blockchain_db.cpp b/src/blockchain_db/blockchain_db.cpp
index 44be08003..ab73e255c 100644
--- a/src/blockchain_db/blockchain_db.cpp
+++ b/src/blockchain_db/blockchain_db.cpp
@@ -241,15 +241,8 @@ void BlockchainDB::add_transaction(const crypto::hash& blk_hash, const std::pair
}
else
{
- rct::key commitment;
- if (tx.version > 1)
- {
- commitment = tx.rct_signatures.outPk[i].mask;
- if (rct::is_rct_bulletproof_plus(tx.rct_signatures.type))
- commitment = rct::scalarmult8(commitment);
- }
amount_output_indices[i] = add_output(tx_hash, tx.vout[i], i, tx.unlock_time,
- tx.version > 1 ? &commitment : NULL);
+ tx.version > 1 ? &tx.rct_signatures.outPk[i].mask : NULL);
}
}
add_tx_amount_output_indices(tx_id, amount_output_indices);