m_cmd_binder.set_handler("payments",boost::bind(&simple_wallet::show_payments,this,_1),tr("payments <PID_1> [<PID_2> ... <PID_N>] - Show payments for given payment ID[s]"));
m_cmd_binder.set_handler("transfer_original",boost::bind(&simple_wallet::transfer,this,_1),tr("Same as transfer, but using an older transaction building algorithm"));
m_cmd_binder.set_handler("transfer",boost::bind(&simple_wallet::transfer_new,this,_1),tr("transfer [<priority>] [<mixin_count>] <address> <amount> [<payment_id>] - Transfer <amount> to <address>. <priority> is the priority of the transaction. The higher the priority, the higher the fee of the transaction. 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. <mixin_count> is the number of extra inputs to include for untraceability. Multiple payments can be made at once by adding <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
m_cmd_binder.set_handler("locked_transfer",boost::bind(&simple_wallet::locked_transfer,this,_1),tr("locked_transfer [<mixin_count>] <addr> <amount> <lockblocks>(Number of blocks to lock the transaction for, max 1000000) [<payment_id>]"));
m_cmd_binder.set_handler("sweep_unmixable",boost::bind(&simple_wallet::sweep_unmixable,this,_1),tr("Send all unmixable outputs to yourself with mixin 0"));
m_cmd_binder.set_handler("sweep_all",boost::bind(&simple_wallet::sweep_all,this,_1),tr("sweep_all [mixin] address [payment_id] - Send all unlocked balance to an address"));
m_cmd_binder.set_handler("sweep_below",boost::bind(&simple_wallet::sweep_below,this,_1),tr("sweep_below <amount_threshold> [mixin] address [payment_id] - Send all unlocked outputs below the threshold to an address"));
m_cmd_binder.set_handler("donate",boost::bind(&simple_wallet::donate,this,_1),tr("donate [<mixin_count>] <amount> [payment_id] - Donate <amount> to the development team (donate.getmonero.org)"));
m_cmd_binder.set_handler("transfer",boost::bind(&simple_wallet::transfer_new,this,_1),tr("transfer [<priority>] [<ring_size>] <address> <amount> [<payment_id>] - Transfer <amount> to <address>. <priority> is the priority of the transaction. The higher the priority, the higher the fee of the transaction. 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 <address_2> <amount_2> etcetera (before the payment ID, if it's included)"));
m_cmd_binder.set_handler("locked_transfer",boost::bind(&simple_wallet::locked_transfer,this,_1),tr("locked_transfer [<ring_size>] <addr> <amount> <lockblocks>(Number of blocks to lock the transaction for, max 1000000) [<payment_id>]"));
m_cmd_binder.set_handler("sweep_unmixable",boost::bind(&simple_wallet::sweep_unmixable,this,_1),tr("Send all unmixable outputs to yourself with ring_size 1"));
m_cmd_binder.set_handler("sweep_all",boost::bind(&simple_wallet::sweep_all,this,_1),tr("sweep_all [ring_size] address [payment_id] - Send all unlocked balance to an address"));
m_cmd_binder.set_handler("sweep_below",boost::bind(&simple_wallet::sweep_below,this,_1),tr("sweep_below <amount_threshold> [ring_size] address [payment_id] - Send all unlocked outputs below the threshold to an address"));
m_cmd_binder.set_handler("donate",boost::bind(&simple_wallet::donate,this,_1),tr("donate [<ring_size>] <amount> [payment_id] - Donate <amount> to the development team (donate.getmonero.org)"));
m_cmd_binder.set_handler("sign_transfer",boost::bind(&simple_wallet::sign_transfer,this,_1),tr("Sign a transaction from a file"));
m_cmd_binder.set_handler("submit_transfer",boost::bind(&simple_wallet::submit_transfer,this,_1),tr("Submit a signed transaction from a file"));
m_cmd_binder.set_handler("set_log",boost::bind(&simple_wallet::set_log,this,_1),tr("set_log <level>|<categories> - Change current log detail (level must be <0-4>)"));
m_cmd_binder.set_handler("set",boost::bind(&simple_wallet::set_variable,this,_1),tr("Available options: seed language - set wallet seed language; always-confirm-transfers <1|0> - whether to confirm unsplit txes; print-ring-members <1|0> - whether to print detailed information about ring members during confirmation; store-tx-info <1|0> - whether to store outgoing tx info (destination address, payment ID, tx secret key) for future reference; default-mixin <n> - set default mixin (default is 4); auto-refresh <1|0> - whether to automatically sync new blocks from the daemon; refresh-type <full|optimize-coinbase|no-coinbase|default> - set wallet refresh behaviour; priority [0|1|2|3|4] - default/unimportant/normal/elevated/priority fee; confirm-missing-payment-id <1|0>; ask-password <1|0>; unit <monero|millinero|micronero|nanonero|piconero> - set default monero (sub-)unit; min-outputs-count [n] - try to keep at least that many outputs of value at least min-outputs-value; min-outputs-value [n] - try to keep at least min-outputs-count outputs of at least that value; merge-destinations <1|0> - whether to merge multiple payments to the same destination address"));
m_cmd_binder.set_handler("set",boost::bind(&simple_wallet::set_variable,this,_1),tr("Available options: seed language - set wallet seed language; always-confirm-transfers <1|0> - whether to confirm unsplit txes; print-ring-members <1|0> - whether to print detailed information about ring members during confirmation; store-tx-info <1|0> - whether to store outgoing tx info (destination address, payment ID, tx secret key) for future reference; default-ring-size <n> - set default ring size (default is 5); auto-refresh <1|0> - whether to automatically sync new blocks from the daemon; refresh-type <full|optimize-coinbase|no-coinbase|default> - set wallet refresh behaviour; priority [0|1|2|3|4] - default/unimportant/normal/elevated/priority fee; confirm-missing-payment-id <1|0>; ask-password <1|0>; unit <monero|millinero|micronero|nanonero|piconero> - set default monero (sub-)unit; min-outputs-count [n] - try to keep at least that many outputs of value at least min-outputs-value; min-outputs-value [n] - try to keep at least min-outputs-count outputs of at least that value; merge-destinations <1|0> - whether to merge multiple payments to the same destination address"));
m_cmd_binder.set_handler("rescan_spent",boost::bind(&simple_wallet::rescan_spent,this,_1),tr("Rescan blockchain for spent outputs"));
m_cmd_binder.set_handler("get_tx_key",boost::bind(&simple_wallet::get_tx_key,this,_1),tr("Get transaction key (r) for a given <txid>"));
m_cmd_binder.set_handler("check_tx_key",boost::bind(&simple_wallet::check_tx_key,this,_1),tr("Check amount going to <address> in <txid>"));
CHECK_SIMPLE_VARIABLE("auto-refresh",set_auto_refresh,tr("0 or 1"));
CHECK_SIMPLE_VARIABLE("refresh-type",set_refresh_type,tr("full (slowest, no assumptions); optimize-coinbase (fast, assumes the whole coinbase is paid to a single address); no-coinbase (fastest, assumes we receive no coinbase transaction), default (same as optimize-coinbase)"));
CHECK_SIMPLE_VARIABLE("priority",set_default_priority,tr("0, 1, 2, 3, or 4"));
std::stringprompt_str=(boost::format(tr("Loaded %lu transactions, for %s, fee %s, %s, %s, with min mixin %lu, %s. %sIs this okay? (Y/Yes/N/No): "))%(unsignedlong)get_num_txes()%print_money(amount)%print_money(fee)%dest_string%change_string%(unsignedlong)min_mixin%payment_id_string%extra_message).str();
std::stringprompt_str=(boost::format(tr("Loaded %lu transactions, for %s, fee %s, %s, %s, with min ring size %lu, %s. %sIs this okay? (Y/Yes/N/No): "))%(unsignedlong)get_num_txes()%print_money(amount)%print_money(fee)%dest_string%change_string%(unsignedlong)min_ring_size%payment_id_string%extra_message).str();
m_confirmationMessage=(boost::format(tr("Loaded %lu transactions, for %s, fee %s, %s, %s, with min mixin %lu. %s"))%(unsignedlong)get_num_txes()%cryptonote::print_money(amount)%cryptonote::print_money(fee)%dest_string%change_string%(unsignedlong)min_mixin%extra_message).str();
m_confirmationMessage=(boost::format(tr("Loaded %lu transactions, for %s, fee %s, %s, %s, with min ring size %lu. %s"))%(unsignedlong)get_num_txes()%cryptonote::print_money(amount)%cryptonote::print_money(fee)%dest_string%change_string%(unsignedlong)min_ring_size%extra_message).str();
@ -4137,7 +4137,7 @@ static size_t estimate_rct_tx_size(int n_inputs, int mixin, int n_outputs)
// txnFee
size+=4;
LOG_PRINT_L2("estimated rct tx size for "<<n_inputs<<"at mixin "<<mixin<<" and "<<n_outputs<<": "<<size<<" ("<<((32*n_inputs/*+1*/)+2*32*(mixin+1)*n_inputs+32*n_outputs)<<" saved)");
LOG_PRINT_L2("estimated rct tx size for "<<n_inputs<<"with ring size "<<(mixin+1)<<" and "<<n_outputs<<": "<<size<<" ("<<((32*n_inputs/*+1*/)+2*32*(mixin+1)*n_inputs+32*n_outputs)<<" saved)");