diff options
author | Riccardo Spagni <ric@spagni.net> | 2017-03-03 14:10:44 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2017-03-03 14:10:44 +0200 |
commit | 14c6c910d7b4412833bcccbb57b34f3e82e79e68 (patch) | |
tree | 82df0bbdd70b24f2498dfe591f7bd8a07fabb671 /src/wallet/api/wallet.cpp | |
parent | Merge pull request #1802 (diff) | |
parent | Wallet API: Add support for daemon rpc login (diff) | |
download | monero-14c6c910d7b4412833bcccbb57b34f3e82e79e68.tar.xz |
Merge pull request #1803
53105743 Wallet API: Add support for daemon rpc login (Jaquee)
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/wallet.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index c798d4d31..99645189a 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -656,9 +656,11 @@ string WalletImpl::keysFilename() const return m_wallet->get_keys_file(); } -bool WalletImpl::init(const std::string &daemon_address, uint64_t upper_transaction_size_limit) +bool WalletImpl::init(const std::string &daemon_address, uint64_t upper_transaction_size_limit, const std::string &daemon_username, const std::string &daemon_password) { clearStatus(); + if(daemon_username != "") + m_daemon_login.emplace(daemon_username, daemon_password); return doInit(daemon_address, upper_transaction_size_limit); } @@ -1365,7 +1367,7 @@ bool WalletImpl::isNewWallet() const bool WalletImpl::doInit(const string &daemon_address, uint64_t upper_transaction_size_limit) { - if (!m_wallet->init(daemon_address, boost::none, upper_transaction_size_limit)) + if (!m_wallet->init(daemon_address, m_daemon_login, upper_transaction_size_limit)) return false; // in case new wallet, this will force fast-refresh (pulling hashes instead of blocks) |