WIP, SON operations, cli_wallet commands and RPC

- get_son in cli_wallet
This commit is contained in:
Srdjan Obucina 2019-10-03 19:50:49 +02:00
parent ecfcd8eda1
commit 4d1bec05bc
2 changed files with 11 additions and 0 deletions

View file

@ -1260,6 +1260,12 @@ class wallet_api
*/
map<string, committee_member_id_type> 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

View file

@ -4155,6 +4155,11 @@ map<string,committee_member_id_type> 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);