Merge pull request #2533

97cdd4c9 core: undo output sorting (moneromooo-monero)
This commit is contained in:
Riccardo Spagni 2017-09-26 15:59:32 +02:00
commit 5f7cddeb53
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD

View file

@ -309,6 +309,7 @@ namespace cryptonote
summary_outs_money += dst_entr.amount;
}
#if 0
// sort outs by their public key
std::vector<size_t> outs_order(tx.vout.size());
for (size_t n = 0; n < tx.vout.size(); ++n)
@ -323,6 +324,7 @@ namespace cryptonote
if (!amount_keys.empty())
std::swap(amount_keys[i0], amount_keys[i1]);
});
#endif
//check money
if(summary_outs_money > summary_inputs_money )