Skip to content

Commit

Permalink
create_wallet() checks for private view key
Browse files Browse the repository at this point in the history
  • Loading branch information
woodser committed Feb 26, 2023
1 parent bafd37a commit d36eae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wallet/monero_wallet_full.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ namespace monero {
if (config.m_restore_height == boost::none) config_normalized.m_restore_height = 0;
if (!config_normalized.m_language.get().empty()) throw std::runtime_error("Cannot specify language when creating wallet from mnemonic");
return create_wallet_from_mnemonic(config_normalized, std::move(http_client_factory));
} else if (!config_normalized.m_primary_address.get().empty() || !config_normalized.m_private_spend_key.get().empty()) {
} else if (!config_normalized.m_primary_address.get().empty() || !config_normalized.m_private_spend_key.get().empty() || !config_normalized.m_private_view_key.get().empty()) {
if (config.m_restore_height == boost::none) config_normalized.m_restore_height = 0;
if (!config_normalized.m_seed_offset.get().empty()) throw std::runtime_error("Cannot specify seed offset when creating wallet from keys");
if (config_normalized.m_language.get().empty()) config_normalized.m_language = std::string("English");
Expand Down

0 comments on commit d36eae0

Please sign in to comment.