diff --git a/src/rpc.cpp b/src/rpc.cpp index 73610cd..2e4e231 100644 --- a/src/rpc.cpp +++ b/src/rpc.cpp @@ -141,6 +141,11 @@ void RPC::getTAddresses(const std::function& cb) { conn->doRPCWithDefaultErrorHandling(makePayload(method, ""), cb); } +void RPC::rescan(const std::function& cb) { + QString method = "rescan"; + conn->doRPCWithDefaultErrorHandling(makePayload(method), cb); +} + void RPC::getZAddresses(const std::function& cb) { QString method = "z_listaddresses"; conn->doRPCWithDefaultErrorHandling(makePayload(method), cb); diff --git a/src/rpc.h b/src/rpc.h index c5ede99..e31d8e8 100644 --- a/src/rpc.h +++ b/src/rpc.h @@ -138,6 +138,7 @@ private: void getPeerInfo (const std::function& cb); void getZAddresses (const std::function& cb); void getTAddresses (const std::function& cb); + void rescan (const std::function& cb); Connection* conn = nullptr; std::shared_ptr ehushd = nullptr;