diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2020-02-19 22:23:46 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2020-02-19 22:23:46 -0500 |
| commit | 2de1137e60760062262f4640532629c47313b897 (patch) | |
| tree | bf5e1771be16607c5f8981effad3c434dff7ff8b /src/wallet/wallet2.cpp | |
| parent | 22a03673982fae857b4f2eb6a775021e3a624a56 (diff) | |
| parent | 316ab7b56ed2b4c3f8eb114f6e291cf9e91f8c00 (diff) | |
| download | monzero-core-2de1137e60760062262f4640532629c47313b897.tar.gz monzero-core-2de1137e60760062262f4640532629c47313b897.tar.xz monzero-core-2de1137e60760062262f4640532629c47313b897.zip | |
Merge pull request #6194
316ab7b wallet2: better error when restoring a wallet with the wrong keys (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2.cpp')
| -rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 9f515b215..6a622d953 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -4282,7 +4282,7 @@ bool wallet2::load_keys(const std::string& keys_file_name, const epee::wipeable_ r = r && hwdev.verify_keys(keys.m_view_secret_key, keys.m_account_address.m_view_public_key); if(!m_watch_only && !m_multisig && hwdev.device_protocol() != hw::device::PROTOCOL_COLD) r = r && hwdev.verify_keys(keys.m_spend_secret_key, keys.m_account_address.m_spend_public_key); - THROW_WALLET_EXCEPTION_IF(!r, error::invalid_password); + THROW_WALLET_EXCEPTION_IF(!r, error::wallet_files_doesnt_correspond, m_keys_file, m_wallet_file); if (r) setup_keys(password); |
