aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-01-30 11:59:19 +0100
committerJaquee <jaquee.monero@gmail.com>2017-02-04 23:25:03 +0100
commit805625b5412e0c37bf7008e4f1a9b75b40a6fd06 (patch)
tree079d19f8f64001709be21854095e8440a5a8030d /src/wallet/wallet2_api.h
parentwallet2::init() - disconnect before init if connected (diff)
downloadmonero-805625b5412e0c37bf7008e4f1a9b75b40a6fd06.tar.xz
wallet api: Remove initAsync() and don't start refresh automatically on init
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2_api.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index 563f16eaa..883da7da2 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -332,26 +332,16 @@ struct Wallet
*/
virtual std::string keysFilename() const = 0;
/*!
- * \brief init - initializes wallet with daemon connection params. implicitly connects to the daemon
- * and refreshes the wallet. "refreshed" callback will be invoked. if daemon_address is
- * local address, "trusted daemon" will be set to true forcibly
+ * \brief init - initializes wallet with daemon connection params.
+ * if daemon_address is local address, "trusted daemon" will be set to true forcibly
+ * startRefresh() should be called when wallet is initialized.
*
* \param daemon_address - daemon address in "hostname:port" format
* \param upper_transaction_size_limit
- * \return - true if initialized and refreshed successfully
+ * \return - true on success
*/
virtual bool init(const std::string &daemon_address, uint64_t upper_transaction_size_limit) = 0;
- /*!
- * \brief init - initalizes wallet asynchronously. logic is the same as "init" but returns immediately.
- * "refreshed" callback will be invoked.
- *
- * \param daemon_address - daemon address in "hostname:port" format
- * \param upper_transaction_size_limit
- * \return - true if initialized and refreshed successfully
- */
- virtual void initAsync(const std::string &daemon_address, uint64_t upper_transaction_size_limit) = 0;
-
/*!
* \brief createWatchOnly - Creates a watch only wallet
* \param path - where to store the wallet