diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-26 13:23:31 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-26 13:23:31 +0100 |
commit | 97cdd4c92fa0c906bdc11a763a9fa05d45cf7c42 (patch) | |
tree | b64d0d77f0b7cec9ab1c3a072158c4bbe5e1c957 /src/cryptonote_core | |
parent | Merge pull request #2466 (diff) | |
download | monero-97cdd4c92fa0c906bdc11a763a9fa05d45cf7c42.tar.xz |
core: undo output sorting
It looks like it may be buggy
Diffstat (limited to 'src/cryptonote_core')
-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 d2a7eedf5..679c00478 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) @@ -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 ) |