aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorstoffu <stoffu@protonmail.ch>2018-10-31 20:00:57 +0900
committerstoffu <stoffu@protonmail.ch>2018-10-31 20:01:25 +0900
commit1598f01caf72eb9a8fd93f21213b5ac2671a7f0e (patch)
treebcd80ca9c84e4d2f469d43a3e40a8cf52d4cd85d /src
parentMerge pull request #4721 (diff)
downloadmonero-1598f01caf72eb9a8fd93f21213b5ac2671a7f0e.tar.xz
wallet2: use padded bulletproofs for multisig signing
Analogous to #4540
Diffstat (limited to 'src')
-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 37b60c5d7..6ec67c2e1 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -5997,10 +5997,7 @@ bool wallet2::sign_multisig_tx(multisig_tx_set &exported_txs, std::vector<crypto
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;
}
bool r = cryptonote::construct_tx_with_tx_key(m_account.get_keys(), m_subaddresses, sources, sd.splitted_dsts, ptx.change_dts.addr, sd.extra, tx, sd.unlock_time, ptx.tx_key, ptx.additional_tx_keys, sd.use_rct, range_proof_type, &msout, false);
THROW_WALLET_EXCEPTION_IF(!r, error::tx_not_constructed, sd.sources, sd.splitted_dsts, sd.unlock_time, m_nettype);