aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-09 14:31:21 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-10-09 14:32:38 +0000
commit8833aec08331131c2eb69a1ac3709837f63a14d8 (patch)
tree22f88fe81731fd0dd011b47da67092faa0fe8624 /src/wallet/wallet2.cpp
parentMerge pull request #4514 (diff)
downloadmonero-8833aec08331131c2eb69a1ac3709837f63a14d8.tar.xz
wallet2: fix cold signing using non padded bulletproofs
This code was deciding which bulletproof configuration to use based on ptx which weren't created yet.
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r--src/wallet/wallet2.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index 7871fe99c..f87edf506 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -5563,10 +5563,7 @@ 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;
+ range_proof_type = rct::RangeProofPaddedBulletproof;
}
crypto::secret_key tx_key;
std::vector<crypto::secret_key> additional_tx_keys;