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.cpp | |
| parent | 4d66939791b6536e64d9924abc332a754706d2a1 (diff) | |
| download | monzero-core-a64f57fe42292720415a507feb4f543ef3c3adbe.tar.gz monzero-core-a64f57fe42292720415a507feb4f543ef3c3adbe.tar.xz monzero-core-a64f57fe42292720415a507feb4f543ef3c3adbe.zip | |
wallet2: make --restricted-rpc available for wallet RPC only
Diffstat (limited to 'src/wallet/api/wallet.cpp')
| -rw-r--r-- | src/wallet/api/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp index f7c074b5a..b48bf07e0 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -366,7 +366,7 @@ void Wallet::error(const std::string &category, const std::string &str) { } ///////////////////////// WalletImpl implementation //////////////////////// -WalletImpl::WalletImpl(NetworkType nettype, bool restricted, uint64_t kdf_rounds) +WalletImpl::WalletImpl(NetworkType nettype, uint64_t kdf_rounds) :m_wallet(nullptr) , m_status(Wallet::Status_Ok) , m_trustedDaemon(false) @@ -377,7 +377,7 @@ WalletImpl::WalletImpl(NetworkType nettype, bool restricted, uint64_t kdf_rounds , m_rebuildWalletCache(false) , m_is_connected(false) { - m_wallet = new tools::wallet2(static_cast<cryptonote::network_type>(nettype), restricted, kdf_rounds); + m_wallet = new tools::wallet2(static_cast<cryptonote::network_type>(nettype), kdf_rounds); m_history = new TransactionHistoryImpl(this); m_wallet2Callback = new Wallet2CallbackImpl(this); m_wallet->callback(m_wallet2Callback); |
