diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-09-26 15:59:32 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-09-26 15:59:32 +0200 |
commit | 5f7cddeb5383926e8c259939c0d2b490322bfe65 (patch) | |
tree | a060cd215f13982dc449cddfb0e31a3cecd6c832 | |
parent | Merge pull request #2527 (diff) | |
parent | core: undo output sorting (diff) | |
download | monero-5f7cddeb5383926e8c259939c0d2b490322bfe65.tar.xz |
Merge pull request #2533
97cdd4c9 core: undo output sorting (moneromooo-monero)
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 2 |
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 ) |