From 8bc204c69bb4f248cf93ea9b93202714b92535ff Mon Sep 17 00:00:00 2001 From: Srdjan Obucina Date: Fri, 4 Oct 2019 02:43:16 +0200 Subject: [PATCH] WIP, SON operations, cli_wallet commands and RPC - rename vote_for_son_member to vote_for_son --- libraries/wallet/include/graphene/wallet/wallet.hpp | 4 ++-- libraries/wallet/wallet.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index 58459615..d8d7330a 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -1459,7 +1459,7 @@ class wallet_api * @param broadcast true if you wish to broadcast the transaction * @return the signed transaction changing your vote for the given son_member */ - signed_transaction vote_for_son_member(string voting_account, + signed_transaction vote_for_son(string voting_account, string son_member, bool approve, bool broadcast = false); @@ -2089,7 +2089,7 @@ FC_API( graphene::wallet::wallet_api, (get_vesting_balances) (withdraw_vesting) (vote_for_committee_member) - (vote_for_son_member) + (vote_for_son) (update_son_votes) (vote_for_witness) (update_witness_votes) diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index fbb06eb3..bce5ec25 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -2171,7 +2171,7 @@ public: return sign_transaction( tx, broadcast ); } FC_CAPTURE_AND_RETHROW( (voting_account)(committee_member)(approve)(broadcast) ) } - signed_transaction vote_for_son_member(string voting_account, + signed_transaction vote_for_son(string voting_account, string son_member, bool approve, bool broadcast /* = false */) @@ -4297,12 +4297,12 @@ signed_transaction wallet_api::vote_for_committee_member(string voting_account, return my->vote_for_committee_member(voting_account, witness, approve, broadcast); } -signed_transaction wallet_api::vote_for_son_member(string voting_account, +signed_transaction wallet_api::vote_for_son(string voting_account, string son_member, bool approve, bool broadcast /* = false */) { - return my->vote_for_son_member(voting_account, son_member, approve, broadcast); + return my->vote_for_son(voting_account, son_member, approve, broadcast); } signed_transaction wallet_api::update_son_votes(string voting_account,