WIP, SON operations, cli_wallet commands and RPC
- get_son in cli_wallet
This commit is contained in:
parent
ecfcd8eda1
commit
4d1bec05bc
2 changed files with 11 additions and 0 deletions
|
|
@ -1260,6 +1260,12 @@ class wallet_api
|
||||||
*/
|
*/
|
||||||
map<string, committee_member_id_type> list_committee_members(const string& lowerbound, uint32_t limit);
|
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.
|
/** Returns information about the given witness.
|
||||||
* @param owner_account the name or id of the witness account owner, or the id of the 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
|
* @returns the information about the witness stored in the block chain
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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)
|
witness_object wallet_api::get_witness(string owner_account)
|
||||||
{
|
{
|
||||||
return my->get_witness(owner_account);
|
return my->get_witness(owner_account);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue