From 5a0dc75aab863baadf407607b81d2245e40ddd19 Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Sat, 1 Feb 2020 23:47:37 +0100 Subject: [PATCH] extended plain wallet api for interruptin sync thread --- src/wallet/plain_wallet_api.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wallet/plain_wallet_api.cpp b/src/wallet/plain_wallet_api.cpp index abaf493d..b5241548 100644 --- a/src/wallet/plain_wallet_api.cpp +++ b/src/wallet/plain_wallet_api.cpp @@ -135,6 +135,12 @@ namespace plain_wallet GET_INSTANCE(pimpl, h); return pimpl->get_sync_status(); } + + std::string cancel_sync_thread(hwallet h) + { + GET_INSTANCE(pimpl, h); + return pimpl->cancel_sync_thread(); + } std::string sync(hwallet h) { GET_INSTANCE(pimpl, h);