core: undo output sorting

It looks like it may be buggy
This commit is contained in:
moneromooo-monero 2017-09-26 13:23:31 +01:00
parent 85f4b600d2
commit 97cdd4c92f
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

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)
@ -322,6 +323,7 @@ namespace cryptonote
std::swap(tx.vout[i0], tx.vout[i1]);
std::swap(amount_keys[i0], amount_keys[i1]);
});
#endif
//check money
if(summary_outs_money > summary_inputs_money )