1
0
Fork 0
forked from lthn/blockchain

added seed to wallet generation api

This commit is contained in:
cryptozoidberg 2024-04-10 19:31:01 +02:00
parent 4f74046e62
commit c54f3fc1d8
No known key found for this signature in database
GPG key ID: 2E10CC61CAC8F36D

View file

@ -1188,7 +1188,7 @@ std::string wallets_manager::generate_wallet(const std::wstring& path, const std
{
w->generate(path, password, false);
w->set_minimum_height(m_last_daemon_height-1);
//owr.seed = w->get_account().get_seed_phrase();
owr.seed = w->get_account().get_seed_phrase("");
}
catch (const tools::error::file_exists&)
{
@ -1297,7 +1297,7 @@ std::string wallets_manager::restore_wallet(const std::wstring& path, const std:
{
bool is_tracking = currency::account_base::is_seed_tracking(seed_phrase);
w->restore(path, password, seed_phrase, is_tracking, seed_password);
//owr.seed = w->get_account().get_seed_phrase();
owr.seed = w->get_account().get_seed_phrase("");
}
catch (const tools::error::file_exists&)
{