From 6d24a6f94b47ae56f1c0c9ae292bcc881b1fa73f Mon Sep 17 00:00:00 2001 From: wowario Date: Wed, 9 May 2018 11:47:53 +0300 Subject: [PATCH] remove payment_id --- src/simplewallet/simplewallet.cpp | 17 +---------------- src/simplewallet/simplewallet.h | 1 - 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index 215752fb0..9aff5e666 100755 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -727,19 +727,6 @@ bool simple_wallet::change_password(const std::vector &args) return true; } -bool simple_wallet::payment_id(const std::vector &args/* = std::vector()*/) -{ - crypto::hash payment_id; - if (args.size() > 0) - { - fail_msg_writer() << tr("usage: payment_id"); - return true; - } - payment_id = crypto::rand(); - success_msg_writer() << tr("Random payment ID: ") << payment_id; - return true; -} - bool simple_wallet::print_fee_info(const std::vector &args/* = std::vector()*/) { if (!try_connect_to_daemon()) @@ -2273,9 +2260,6 @@ simple_wallet::simple_wallet() m_cmd_binder.set_handler("password", boost::bind(&simple_wallet::change_password, this, _1), tr("Change the wallet's password.")); - m_cmd_binder.set_handler("payment_id", - boost::bind(&simple_wallet::payment_id, this, _1), - tr("Generate a new random full size payment id. These will be unencrypted on the blockchain, see integrated_address for encrypted short payment ids.")); m_cmd_binder.set_handler("fee", boost::bind(&simple_wallet::print_fee_info, this, _1), tr("Print the information about the current fee and transaction backlog.")); @@ -4401,6 +4385,7 @@ bool simple_wallet::transfer_main(int transfer_type, const std::vector &args); bool show_transfer(const std::vector &args); bool change_password(const std::vector& args); - bool payment_id(const std::vector &args); bool print_fee_info(const std::vector &args); bool prepare_multisig(const std::vector& args); bool make_multisig(const std::vector& args);