aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-13 16:18:32 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-09-14 10:51:45 +0000
commitbe001326d1baac0b00d79d2d0a7f42662dc1be1f (patch)
tree30251dca497acdbf0a51ddfdbe4be7ab5d39e50c /src/simplewallet/simplewallet.cpp
parentMerge pull request #4178 (diff)
downloadmonero-be001326d1baac0b00d79d2d0a7f42662dc1be1f.tar.xz
remove obsolete daemon selection of fake outs and old tx construction
Diffstat (limited to '')
-rw-r--r--src/simplewallet/simplewallet.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index bcdf2a43f..98f17eb24 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -445,7 +445,7 @@ namespace
LOG_ERROR("RPC error: " << e.to_string());
fail_msg_writer() << tr("RPC error: ") << e.what();
}
- catch (const tools::error::get_random_outs_error &e)
+ catch (const tools::error::get_outs_error &e)
{
fail_msg_writer() << tr("failed to get random outputs to mix: ") << e.what();
}
@@ -4856,15 +4856,12 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
unlock_block = bc_height + locked_blocks;
ptx_vector = m_wallet->create_transactions_2(dsts, fake_outs_count, unlock_block /* unlock_time */, priority, extra, m_current_subaddress_account, subaddr_indices);
break;
+ default:
+ LOG_ERROR("Unknown transfer method, using default");
+ /* FALLTHRU */
case TransferNew:
ptx_vector = m_wallet->create_transactions_2(dsts, fake_outs_count, 0 /* unlock_time */, priority, extra, m_current_subaddress_account, subaddr_indices);
break;
- default:
- LOG_ERROR("Unknown transfer method, using original");
- /* FALLTHRU */
- case TransferOriginal:
- ptx_vector = m_wallet->create_transactions(dsts, fake_outs_count, 0 /* unlock_time */, priority, extra);
- break;
}
if (ptx_vector.empty())