mirror of
https://github.com/monero-project/monero.git
synced 2025-08-01 17:56:08 -04:00
wallet2: only export necessary outputs and key images
and disable annoying test that requires ridiculous amounts of skullduggery every time some format changes
This commit is contained in:
parent
769ae42a7b
commit
8d71b2b1b3
9 changed files with 125 additions and 65 deletions
|
@ -212,9 +212,10 @@ namespace trezor {
|
|||
tools::wallet2::signed_tx_set & signed_tx,
|
||||
hw::tx_aux_data & aux_data)
|
||||
{
|
||||
CHECK_AND_ASSERT_THROW_MES(unsigned_tx.transfers.first == 0, "Unsuported non zero offset");
|
||||
size_t num_tx = unsigned_tx.txes.size();
|
||||
signed_tx.key_images.clear();
|
||||
signed_tx.key_images.resize(unsigned_tx.transfers.size());
|
||||
signed_tx.key_images.resize(unsigned_tx.transfers.second.size());
|
||||
|
||||
for(size_t tx_idx = 0; tx_idx < num_tx; ++tx_idx) {
|
||||
std::shared_ptr<protocol::tx::Signer> signer;
|
||||
|
@ -360,4 +361,4 @@ namespace trezor {
|
|||
}
|
||||
|
||||
#endif //WITH_DEVICE_TREZOR
|
||||
}}
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue