mirror of
https://github.com/monero-project/monero.git
synced 2024-10-01 11:49:47 -04:00
Merge pull request #3314
71bff546
wallet api: when restoring from EnglishOld, set language to English (stoffu)
This commit is contained in:
commit
5b25cbb5a7
@ -40,6 +40,7 @@
|
|||||||
#include "common/util.h"
|
#include "common/util.h"
|
||||||
|
|
||||||
#include "mnemonics/electrum-words.h"
|
#include "mnemonics/electrum-words.h"
|
||||||
|
#include "mnemonics/english.h"
|
||||||
#include <boost/format.hpp>
|
#include <boost/format.hpp>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <unordered_map>
|
#include <unordered_map>
|
||||||
@ -603,6 +604,9 @@ bool WalletImpl::recover(const std::string &path, const std::string &password, c
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (old_language == crypto::ElectrumWords::old_language_name)
|
||||||
|
old_language = Language::English().get_language_name();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
m_wallet->set_seed_language(old_language);
|
m_wallet->set_seed_language(old_language);
|
||||||
m_wallet->generate(path, password, recovery_key, true, false);
|
m_wallet->generate(path, password, recovery_key, true, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user