Merge pull request #2527

ba6907f6 core: fix creation of v1 txes (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-09-25 23:29:32 +02:00
commit 21c2c08041
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 2 additions and 1 deletions

View File

@ -320,6 +320,7 @@ namespace cryptonote
});
tools::apply_permutation(outs_order, [&] (size_t i0, size_t i1) {
std::swap(tx.vout[i0], tx.vout[i1]);
if (!amount_keys.empty())
std::swap(amount_keys[i0], amount_keys[i1]);
});