diff options
author | mmitkevich <mim@exante.eu> | 2018-10-16 14:58:22 +0300 |
---|---|---|
committer | mmitkevich <mim@exante.eu> | 2018-10-16 14:58:22 +0300 |
commit | a7960542a9f8ea0ee0e90a24c411bb98f452c53b (patch) | |
tree | 7724ca660878536bd51e1e784c2ed242b4fcbdee /src/wallet/api/wallet2_api.h | |
parent | Merge pull request #4502 (diff) | |
download | monero-a7960542a9f8ea0ee0e90a24c411bb98f452c53b.tar.xz |
WalletAPI: rescanBlockchain, rescanBlockchainAsync
Diffstat (limited to 'src/wallet/api/wallet2_api.h')
-rw-r--r-- | src/wallet/api/wallet2_api.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/wallet/api/wallet2_api.h b/src/wallet/api/wallet2_api.h index ec1a84877..82627de29 100644 --- a/src/wallet/api/wallet2_api.h +++ b/src/wallet/api/wallet2_api.h @@ -644,6 +644,17 @@ struct Wallet virtual void refreshAsync() = 0; /** + * @brief rescanBlockchain - rescans the wallet, updating transactions from daemon + * @return - true if refreshed successfully; + */ + virtual bool rescanBlockchain() = 0; + + /** + * @brief rescanBlockchainAsync - rescans wallet asynchronously, starting from genesys + */ + virtual void rescanBlockchainAsync() = 0; + + /** * @brief setAutoRefreshInterval - setup interval for automatic refresh. * @param seconds - interval in millis. if zero or less than zero - automatic refresh disabled; */ |