core: fix creation of v1 txes

pull/95/head
moneromooo-monero 7 years ago
parent 85f4b600d2
commit ba6907f661
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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

Loading…
Cancel
Save