|
|
|
@ -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
|
|
|
|
|