Merge pull request #4540

8833aec0 wallet2: fix cold signing using non padded bulletproofs (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2018-10-09 16:43:01 +02:00
commit c23b6f8f56
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 1 additions and 4 deletions

View File

@ -5563,9 +5563,6 @@ bool wallet2::sign_tx(unsigned_tx_set &exported_txs, std::vector<wallet2::pendin
rct::RangeProofType range_proof_type = rct::RangeProofBorromean;
if (sd.use_bulletproofs)
{
range_proof_type = rct::RangeProofBulletproof;
for (const rct::Bulletproof &proof: ptx.tx.rct_signatures.p.bulletproofs)
if (proof.V.size() > 1)
range_proof_type = rct::RangeProofPaddedBulletproof;
}
crypto::secret_key tx_key;