forked from lthn/blockchain
added get_wallet_status to async call options
This commit is contained in:
parent
154907fe96
commit
17e90b219f
1 changed files with 9 additions and 1 deletions
|
|
@ -373,7 +373,15 @@ namespace plain_wallet
|
|||
put_result(job_id, res);
|
||||
};
|
||||
}
|
||||
else
|
||||
else if (method_name == "get_wallet_status")
|
||||
{
|
||||
std::string local_params = params;
|
||||
async_callback = [job_id, local_params, instance_id]()
|
||||
{
|
||||
std::string res = get_wallet_status(instance_id);
|
||||
put_result(job_id, res);
|
||||
};
|
||||
}else
|
||||
{
|
||||
view::api_response ar = AUTO_VAL_INIT(ar);
|
||||
ar.error_code = "UNKNOWN METHOD";
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue