mirror of
https://github.com/monero-project/monero.git
synced 2024-11-18 00:37:43 +00:00
Merge pull request #4764
1598f01c
wallet2: use padded bulletproofs for multisig signing (stoffu)
This commit is contained in:
commit
95d96d139d
1 changed files with 1 additions and 4 deletions
|
@ -6027,10 +6027,7 @@ bool wallet2::sign_multisig_tx(multisig_tx_set &exported_txs, std::vector<crypto
|
||||||
rct::RangeProofType range_proof_type = rct::RangeProofBorromean;
|
rct::RangeProofType range_proof_type = rct::RangeProofBorromean;
|
||||||
if (sd.use_bulletproofs)
|
if (sd.use_bulletproofs)
|
||||||
{
|
{
|
||||||
range_proof_type = rct::RangeProofBulletproof;
|
range_proof_type = rct::RangeProofPaddedBulletproof;
|
||||||
for (const rct::Bulletproof &proof: ptx.tx.rct_signatures.p.bulletproofs)
|
|
||||||
if (proof.V.size() > 1)
|
|
||||||
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);
|
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);
|
THROW_WALLET_EXCEPTION_IF(!r, error::tx_not_constructed, sd.sources, sd.splitted_dsts, sd.unlock_time, m_nettype);
|
||||||
|
|
Loading…
Reference in a new issue