From 4d1bec05bc6fd7b3ab36c6a59097cd393dd8cee7 Mon Sep 17 00:00:00 2001 From: Srdjan Obucina Date: Thu, 3 Oct 2019 19:50:49 +0200 Subject: [PATCH] WIP, SON operations, cli_wallet commands and RPC - get_son in cli_wallet --- libraries/wallet/include/graphene/wallet/wallet.hpp | 6 ++++++ libraries/wallet/wallet.cpp | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/libraries/wallet/include/graphene/wallet/wallet.hpp b/libraries/wallet/include/graphene/wallet/wallet.hpp index 1005e634..23a648f3 100644 --- a/libraries/wallet/include/graphene/wallet/wallet.hpp +++ b/libraries/wallet/include/graphene/wallet/wallet.hpp @@ -1260,6 +1260,12 @@ class wallet_api */ map list_committee_members(const string& lowerbound, uint32_t limit); + /** Returns information about the given son. + * @param owner_account the name or id of the SON account owner, or the id of the SON + * @returns the information about the SON stored in the block chain + */ + son_object get_son(string owner_account); + /** Returns information about the given witness. * @param owner_account the name or id of the witness account owner, or the id of the witness * @returns the information about the witness stored in the block chain diff --git a/libraries/wallet/wallet.cpp b/libraries/wallet/wallet.cpp index 39a1998c..e6664fde 100644 --- a/libraries/wallet/wallet.cpp +++ b/libraries/wallet/wallet.cpp @@ -4155,6 +4155,11 @@ map wallet_api::list_committee_members(const st return my->_remote_db->lookup_committee_member_accounts(lowerbound, limit); } +son_object wallet_api::get_son(string owner_account) +{ + return my->get_son(owner_account); +} + witness_object wallet_api::get_witness(string owner_account) { return my->get_witness(owner_account);