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:
moneromooo-monero 2018-10-24 18:24:11 +00:00
parent 769ae42a7b
commit 8d71b2b1b3
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
9 changed files with 125 additions and 65 deletions

View file

@ -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
}}
}}