1
0
Fork 0
forked from lthn/blockchain

added get_wallet_status to async call options

This commit is contained in:
cryptozoidberg 2020-04-02 22:26:14 +02:00
parent 154907fe96
commit 17e90b219f
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -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";