diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-25 22:27:30 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-09-25 22:27:30 +0100 |
commit | ba6907f6611942525e96ce6af5872ddc384120d0 (patch) | |
tree | f911c0bd5d8f308449a0d71ae032f9fbbe64bcb2 /src | |
parent | Merge pull request #2466 (diff) | |
download | monero-ba6907f6611942525e96ce6af5872ddc384120d0.tar.xz |
core: fix creation of v1 txes
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptonote_core/cryptonote_tx_utils.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cryptonote_core/cryptonote_tx_utils.cpp b/src/cryptonote_core/cryptonote_tx_utils.cpp index d2a7eedf5..2ffaea834 100644 --- a/src/cryptonote_core/cryptonote_tx_utils.cpp +++ b/src/cryptonote_core/cryptonote_tx_utils.cpp @@ -320,7 +320,8 @@ namespace cryptonote }); tools::apply_permutation(outs_order, [&] (size_t i0, size_t i1) { std::swap(tx.vout[i0], tx.vout[i1]); - std::swap(amount_keys[i0], amount_keys[i1]); + if (!amount_keys.empty()) + std::swap(amount_keys[i0], amount_keys[i1]); }); //check money |