Merge pull request #8254

9df7179 wallet2: use BP+ for cold signing (moneromooo-monero)
This commit is contained in:
luigi1111 2022-04-19 22:21:21 -05:00
commit 9f814edbd7
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -10660,7 +10660,7 @@ void wallet2::cold_sign_tx(const std::vector<pending_tx>& ptx_vector, signed_tx_
hw::wallet_shim wallet_shim; hw::wallet_shim wallet_shim;
setup_shim(&wallet_shim, this); setup_shim(&wallet_shim, this);
aux_data.tx_recipients = dsts_info; aux_data.tx_recipients = dsts_info;
aux_data.bp_version = (use_fork_rules(HF_VERSION_CLSAG, -10) ? 3 : use_fork_rules(HF_VERSION_SMALLER_BP, -10) ? 2 : 1); aux_data.bp_version = (use_fork_rules(HF_VERSION_BULLETPROOF_PLUS, -10) ? 4 : use_fork_rules(HF_VERSION_CLSAG, -10) ? 3 : use_fork_rules(HF_VERSION_SMALLER_BP, -10) ? 2 : 1);
aux_data.hard_fork = get_current_hard_fork(); aux_data.hard_fork = get_current_hard_fork();
dev_cold->tx_sign(&wallet_shim, txs, exported_txs, aux_data); dev_cold->tx_sign(&wallet_shim, txs, exported_txs, aux_data);
tx_device_aux = aux_data.tx_device_aux; tx_device_aux = aux_data.tx_device_aux;