diff options
author | luigi1111 <luigi1111w@gmail.com> | 2022-12-01 01:08:11 -0600 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2022-12-01 01:08:11 -0600 |
commit | 179a87afae62c92b9e09cbf59c805da4ff5cae83 (patch) | |
tree | d6a45aa4a2916767b8fbf057863980e408660983 /src/wallet/api/wallet.cpp | |
parent | Merge pull request #8610 (diff) | |
parent | wallet2: fix create view-only wallet from existing wallet (diff) | |
download | monero-179a87afae62c92b9e09cbf59c805da4ff5cae83.tar.xz |
Merge pull request #8616
cac5083 wallet2: fix create view-only wallet from existing wallet (j-berman)
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 55db4a610..085f4f9df 100644 --- a/src/wallet/api/wallet.cpp +++ b/src/wallet/api/wallet.cpp @@ -535,7 +535,7 @@ bool WalletImpl::createWatchOnly(const std::string &path, const std::string &pas view_wallet->generate(path, password, address, viewkey); // Export/Import outputs - auto outputs = m_wallet->export_outputs(); + auto outputs = m_wallet->export_outputs(true/*all*/); view_wallet->import_outputs(outputs); // Copy scanned blockchain @@ -553,7 +553,7 @@ bool WalletImpl::createWatchOnly(const std::string &path, const std::string &pas // Export/Import key images // We already know the spent status from the outputs we exported, thus no need to check them again - auto key_images = m_wallet->export_key_images(); + auto key_images = m_wallet->export_key_images(true/*all*/); uint64_t spent = 0; uint64_t unspent = 0; view_wallet->import_key_images(key_images.second, key_images.first, spent, unspent, false); |