mirror of
https://github.com/monero-project/monero.git
synced 2024-12-15 12:56:33 +02:00
simplewallet: remove obsolete transfer_original command
This commit is contained in:
parent
bb30a72367
commit
05edc969c0
@ -108,8 +108,7 @@ typedef cryptonote::simple_wallet sw;
|
|||||||
tools::wallet_keys_unlocker unlocker(*m_wallet, pwd_container);
|
tools::wallet_keys_unlocker unlocker(*m_wallet, pwd_container);
|
||||||
|
|
||||||
enum TransferType {
|
enum TransferType {
|
||||||
TransferOriginal,
|
Transfer,
|
||||||
TransferNew,
|
|
||||||
TransferLocked,
|
TransferLocked,
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -2297,11 +2296,7 @@ simple_wallet::simple_wallet()
|
|||||||
m_cmd_binder.set_handler("bc_height",
|
m_cmd_binder.set_handler("bc_height",
|
||||||
boost::bind(&simple_wallet::show_blockchain_height, this, _1),
|
boost::bind(&simple_wallet::show_blockchain_height, this, _1),
|
||||||
tr("Show the blockchain height."));
|
tr("Show the blockchain height."));
|
||||||
m_cmd_binder.set_handler("transfer_original",
|
m_cmd_binder.set_handler("transfer", boost::bind(&simple_wallet::transfer, this, _1),
|
||||||
boost::bind(&simple_wallet::transfer, this, _1),
|
|
||||||
tr("transfer_original [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] (<URI> | <address> <amount>) [<payment_id>]"),
|
|
||||||
tr("Transfer <amount> to <address> using an older transaction building algorithm. If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the transaction fee. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding URI_2 or <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
|
||||||
m_cmd_binder.set_handler("transfer", boost::bind(&simple_wallet::transfer_new, this, _1),
|
|
||||||
tr("transfer [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] (<URI> | <address> <amount>) [<payment_id>]"),
|
tr("transfer [index=<N1>[,<N2>,...]] [<priority>] [<ring_size>] (<URI> | <address> <amount>) [<payment_id>]"),
|
||||||
tr("Transfer <amount> to <address>. If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the transaction fee. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding URI_2 or <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
tr("Transfer <amount> to <address>. If the parameter \"index=<N1>[,<N2>,...]\" is specified, the wallet uses outputs received by addresses of those indices. If omitted, the wallet randomly chooses address indices to be used. In any case, it tries its best not to combine outputs across multiple addresses. <priority> is the priority of the transaction. The higher the priority, the higher the transaction fee. Valid values in priority order (from lowest to highest) are: unimportant, normal, elevated, priority. If omitted, the default value (see the command \"set priority\") is used. <ring_size> is the number of inputs to include for untraceability. Multiple payments can be made at once by adding URI_2 or <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
|
||||||
m_cmd_binder.set_handler("locked_transfer",
|
m_cmd_binder.set_handler("locked_transfer",
|
||||||
@ -4943,7 +4938,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
|
|||||||
default:
|
default:
|
||||||
LOG_ERROR("Unknown transfer method, using default");
|
LOG_ERROR("Unknown transfer method, using default");
|
||||||
/* FALLTHRU */
|
/* FALLTHRU */
|
||||||
case TransferNew:
|
case Transfer:
|
||||||
ptx_vector = m_wallet->create_transactions_2(dsts, fake_outs_count, 0 /* unlock_time */, priority, extra, m_current_subaddress_account, subaddr_indices);
|
ptx_vector = m_wallet->create_transactions_2(dsts, fake_outs_count, 0 /* unlock_time */, priority, extra, m_current_subaddress_account, subaddr_indices);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -5133,12 +5128,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector<std::stri
|
|||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
bool simple_wallet::transfer(const std::vector<std::string> &args_)
|
bool simple_wallet::transfer(const std::vector<std::string> &args_)
|
||||||
{
|
{
|
||||||
return transfer_main(TransferOriginal, args_);
|
return transfer_main(Transfer, args_);
|
||||||
}
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
|
||||||
bool simple_wallet::transfer_new(const std::vector<std::string> &args_)
|
|
||||||
{
|
|
||||||
return transfer_main(TransferNew, args_);
|
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
bool simple_wallet::locked_transfer(const std::vector<std::string> &args_)
|
bool simple_wallet::locked_transfer(const std::vector<std::string> &args_)
|
||||||
@ -5809,7 +5799,7 @@ bool simple_wallet::donate(const std::vector<std::string> &args_)
|
|||||||
if (!payment_id_str.empty())
|
if (!payment_id_str.empty())
|
||||||
local_args.push_back(payment_id_str);
|
local_args.push_back(payment_id_str);
|
||||||
message_writer() << (boost::format(tr("Donating %s %s to The Monero Project (donate.getmonero.org or %s).")) % amount_str % cryptonote::get_unit(cryptonote::get_default_decimal_point()) % MONERO_DONATION_ADDR).str();
|
message_writer() << (boost::format(tr("Donating %s %s to The Monero Project (donate.getmonero.org or %s).")) % amount_str % cryptonote::get_unit(cryptonote::get_default_decimal_point()) % MONERO_DONATION_ADDR).str();
|
||||||
transfer_new(local_args);
|
transfer(local_args);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
@ -152,7 +152,6 @@ namespace cryptonote
|
|||||||
bool show_blockchain_height(const std::vector<std::string> &args);
|
bool show_blockchain_height(const std::vector<std::string> &args);
|
||||||
bool transfer_main(int transfer_type, const std::vector<std::string> &args);
|
bool transfer_main(int transfer_type, const std::vector<std::string> &args);
|
||||||
bool transfer(const std::vector<std::string> &args);
|
bool transfer(const std::vector<std::string> &args);
|
||||||
bool transfer_new(const std::vector<std::string> &args);
|
|
||||||
bool locked_transfer(const std::vector<std::string> &args);
|
bool locked_transfer(const std::vector<std::string> &args);
|
||||||
bool locked_sweep_all(const std::vector<std::string> &args);
|
bool locked_sweep_all(const std::vector<std::string> &args);
|
||||||
bool sweep_main(uint64_t below, bool locked, const std::vector<std::string> &args);
|
bool sweep_main(uint64_t below, bool locked, const std::vector<std::string> &args);
|
||||||
|
Loading…
Reference in New Issue
Block a user