WalletAPI: rescanBlockchain, rescanBlockchainAsync

This commit is contained in:
mmitkevich
2018-10-16 14:58:22 +03:00
parent 1afc1d0d26
commit a7960542a9
3 changed files with 38 additions and 2 deletions
+11
View File
@@ -643,6 +643,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;