From 9a9c35649be6e16fd7db5fba01a371d42dbac661 Mon Sep 17 00:00:00 2001 From: satyakoneru Date: Wed, 28 Aug 2019 14:25:39 +0000 Subject: [PATCH 1/2] GRPH-46-Quit_command_cliwallet --- libraries/wallet/include/graphene/wallet/wallet.hpp | 1 + libraries/wallet/wallet.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index d6082564..d34b50b3 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -2154,4 +2154,5 @@ FC_API( graphene::wallet::wallet_api, (get_matched_bets_for_bettor) (get_all_matched_bets_for_bettor) (buy_ticket) + (quit) ) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 27eac237..50af7798 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -1082,6 +1082,14 @@ public: return true; } + + void quit() + { + ilog( "Quitting Cli Wallet ..." ); + + throw fc::canceled_exception(); + } + void save_wallet_file(string wallet_filename = "") { // From e98927541414d63ca6a94539985370a8ed1ec895 Mon Sep 17 00:00:00 2001 From: Sandip Patel Date: Tue, 3 Dec 2019 19:44:16 +0530 Subject: [PATCH 2/2] removed multiple function definition --- libraries/wallet/wallet.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 50af7798..f64e5beb 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -1083,13 +1083,6 @@ public: return true; } - void quit() - { - ilog( "Quitting Cli Wallet ..." ); - - throw fc::canceled_exception(); - } - void save_wallet_file(string wallet_filename = "") { //