diff options
author | Jaquee <jaquee.monero@gmail.com> | 2016-12-14 12:18:52 +0100 |
---|---|---|
committer | Jaquee <jaquee.monero@gmail.com> | 2016-12-15 12:31:09 +0100 |
commit | 944b6079d9ab3ec35c5389f576115570f42a3f80 (patch) | |
tree | e54dff00188e533119f62aa60e3f38ad8782ccaf /src/wallet/wallet2_api.h | |
parent | Merge pull request #1445 (diff) | |
download | monero-944b6079d9ab3ec35c5389f576115570f42a3f80.tar.xz |
Wallet API: Do not refresh while daemon is syncing
+ fixed fast refresh when creating wallet offline
+ improved close wallet logic (make sure refresh thread is stopped)
Diffstat (limited to '')
-rw-r--r-- | src/wallet/wallet2_api.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index cd2e7230a..625cddfd2 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -364,6 +364,15 @@ struct Wallet static std::string paymentIdFromAddress(const std::string &str, bool testnet); static uint64_t maximumAllowedAmount(); + /** + * @brief StartRefresh - Start/resume refresh thread (refresh every 10 seconds) + */ + virtual void startRefresh() = 0; + /** + * @brief pauseRefresh - pause refresh thread + */ + virtual void pauseRefresh() = 0; + /** * @brief refresh - refreshes the wallet, updating transactions from daemon * @return - true if refreshed successfully; |