From cbf07f01ba19baf783886baa23e671da1468557c Mon Sep 17 00:00:00 2001 From: wowario Date: Wed, 17 Oct 2018 01:14:39 +0300 Subject: [PATCH 1/2] encourage use of subaddresses --- src/simplewallet/simplewallet.cpp | 98 +++++--------------- src/simplewallet/simplewallet.h | 3 +- src/wallet/api/wallet.cpp | 8 -- src/wallet/api/wallet.h | 1 - src/wallet/api/wallet2_api.h | 10 -- src/wallet/wallet2.cpp | 17 ++-- src/wallet/wallet2.h | 7 +- src/wallet/wallet_rpc_server.cpp | 63 ------------- src/wallet/wallet_rpc_server.h | 4 - src/wallet/wallet_rpc_server_commands_defs.h | 47 ---------- 10 files changed, 35 insertions(+), 223 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index bf76f3ffa..413277b11 100755 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -1688,13 +1688,13 @@ bool simple_wallet::set_refresh_type(const std::vector &args/* = st return true; } -bool simple_wallet::set_confirm_missing_payment_id(const std::vector &args/* = std::vector()*/) +bool simple_wallet::set_confirm_subaddress(const std::vector &args/* = std::vector()*/) { const auto pwd_container = get_and_verify_password(); if (pwd_container) { parse_bool_and_use(args[1], [&](bool r) { - m_wallet->confirm_missing_payment_id(r); + m_wallet->confirm_subaddress(r); m_wallet->rewrite(m_wallet_file, pwd_container->password()); }); } @@ -1931,10 +1931,10 @@ bool simple_wallet::help(const std::vector &args/* = std::vector | all | [] | label