From 17e90b219f371e04c7febd4b6258b59e4835f32e Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Thu, 2 Apr 2020 22:26:14 +0200 Subject: [PATCH] added get_wallet_status to async call options --- src/wallet/plain_wallet_api.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index b77bc160..071970ba 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -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";