aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-09-26 15:59:32 +0200
committerRiccardo Spagni <ric@spagni.net>2017-09-26 15:59:32 +0200
commit5f7cddeb5383926e8c259939c0d2b490322bfe65 (patch)
treea060cd215f13982dc449cddfb0e31a3cecd6c832
parentMerge pull request #2527 (diff)
parentcore: undo output sorting (diff)
downloadmonero-5f7cddeb5383926e8c259939c0d2b490322bfe65.tar.xz
Merge pull request #2533
97cdd4c9 core: undo output sorting (moneromooo-monero)
Diffstat (limited to '')
-rw-r--r--src/cryptonote_core/cryptonote_tx_utils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp
index 2ffaea834..19ed57aba 100644
--- a/src/cryptonote_core/cryptonote_tx_utils.cpp
+++ b/src/cryptonote_core/cryptonote_tx_utils.cpp
@@ -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 )