diff options
author | stoffu <stoffu@protonmail.ch> | 2018-07-30 14:38:55 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-08-16 09:54:23 +0900 |
commit | a64f57fe42292720415a507feb4f543ef3c3adbe (patch) | |
tree | ca327c88c272d3f8087c793f15833e656039e820 /src/wallet/api/wallet_manager.cpp | |
parent | Merge pull request #4196 (diff) | |
download | monero-a64f57fe42292720415a507feb4f543ef3c3adbe.tar.xz |
wallet2: make --restricted-rpc available for wallet RPC only
Diffstat (limited to '')
-rw-r--r-- | src/wallet/api/wallet_manager.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp index 5daf11ec0..3851ca9cc 100644 --- a/src/wallet/api/wallet_manager.cpp +++ b/src/wallet/api/wallet_manager.cpp @@ -52,14 +52,14 @@ namespace Monero { Wallet *WalletManagerImpl::createWallet(const std::string &path, const std::string &password, const std::string &language, NetworkType nettype, uint64_t kdf_rounds) { - WalletImpl * wallet = new WalletImpl(nettype, false, kdf_rounds); + WalletImpl * wallet = new WalletImpl(nettype, kdf_rounds); wallet->create(path, password, language); return wallet; } Wallet *WalletManagerImpl::openWallet(const std::string &path, const std::string &password, NetworkType nettype, uint64_t kdf_rounds) { - WalletImpl * wallet = new WalletImpl(nettype, false, kdf_rounds); + WalletImpl * wallet = new WalletImpl(nettype, kdf_rounds); wallet->open(path, password); //Refresh addressBook wallet->addressBook()->refresh(); @@ -90,7 +90,7 @@ Wallet *WalletManagerImpl::recoveryWallet(const std::string &path, uint64_t restoreHeight, uint64_t kdf_rounds) { - WalletImpl * wallet = new WalletImpl(nettype, false, kdf_rounds); + WalletImpl * wallet = new WalletImpl(nettype, kdf_rounds); if(restoreHeight > 0){ wallet->setRefreshFromBlockHeight(restoreHeight); } @@ -108,7 +108,7 @@ Wallet *WalletManagerImpl::createWalletFromKeys(const std::string &path, const std::string &spendKeyString, uint64_t kdf_rounds) { - WalletImpl * wallet = new WalletImpl(nettype, false, kdf_rounds); + WalletImpl * wallet = new WalletImpl(nettype, kdf_rounds); if(restoreHeight > 0){ wallet->setRefreshFromBlockHeight(restoreHeight); } @@ -124,7 +124,7 @@ Wallet *WalletManagerImpl::createWalletFromDevice(const std::string &path, const std::string &subaddressLookahead, uint64_t kdf_rounds) { - WalletImpl * wallet = new WalletImpl(nettype, false, kdf_rounds); + WalletImpl * wallet = new WalletImpl(nettype, kdf_rounds); if(restoreHeight > 0){ wallet->setRefreshFromBlockHeight(restoreHeight); } |