1
0
Fork 0
forked from lthn/blockchain

added reset method for quick releasing opened wallets under android

This commit is contained in:
cryptozoidberg 2020-06-02 00:19:54 +02:00
parent 979649f49c
commit 0b636ed070
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
2 changed files with 10 additions and 0 deletions

View file

@ -168,6 +168,15 @@ namespace plain_wallet
}
}
std::string reset()
{
GET_INSTANCE_PTR(inst_ptr);
inst_ptr->gwm.quick_stop_no_save();
epee::json_rpc::response<view::api_responce_return_code, epee::json_rpc::dummy_error> ok_response = AUTO_VAL_INIT(ok_response);
ok_response.result.return_code = API_RETURN_CODE_OK;
return epee::serialization::store_t_to_json(ok_response);
}
std::string init(const std::string& ip, const std::string& port, const std::string& working_dir, int log_level)
{

View file

@ -11,6 +11,7 @@ namespace plain_wallet
{
typedef int64_t hwallet;
std::string init(const std::string& ip, const std::string& port, const std::string& working_dir, int log_level);
std::string reset();
std::string set_log_level(int log_level);
std::string get_version();
std::string get_wallet_files();