diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-07-30 09:37:22 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:30:03 +0100 |
commit | 1303cda646848450986b73ef66449cc4eea2cc0c (patch) | |
tree | 078602d8a69409bc3d511ed3d295ec9d41dfcf2d /src/wallet/wallet_rpc_server.cpp | |
parent | rct: do not serialize senderPk - it is not used anymore (diff) | |
download | monero-1303cda646848450986b73ef66449cc4eea2cc0c.tar.xz |
wallet: always use new algorithm for RPC transfers
This ensures we get rct transactions when appropriate
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 8cb73a3de..20a9ebe93 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -239,7 +239,7 @@ namespace tools LOG_PRINT_L1("Requested mixin " << req.mixin << " too low for hard fork 2, using 2"); mixin = 2; } - std::vector<wallet2::pending_tx> ptx_vector = m_wallet.create_transactions(dsts, mixin, req.unlock_time, req.fee_multiplier, extra, req.trusted_daemon); + std::vector<wallet2::pending_tx> ptx_vector = m_wallet.create_transactions_2(dsts, mixin, req.unlock_time, req.fee_multiplier, extra, req.trusted_daemon); // reject proposed transactions if there are more than one. see on_transfer_split below. if (ptx_vector.size() != 1) @@ -314,10 +314,7 @@ namespace tools mixin = 2; } std::vector<wallet2::pending_tx> ptx_vector; - if (req.new_algorithm) - ptx_vector = m_wallet.create_transactions_2(dsts, mixin, req.unlock_time, req.fee_multiplier, extra, req.trusted_daemon); - else - ptx_vector = m_wallet.create_transactions(dsts, mixin, req.unlock_time, req.fee_multiplier, extra, req.trusted_daemon); + ptx_vector = m_wallet.create_transactions_2(dsts, mixin, req.unlock_time, req.fee_multiplier, extra, req.trusted_daemon); m_wallet.commit_tx(ptx_vector); |