diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 7ecfe64e..3f5c26ba 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -1981,6 +1981,11 @@ void wallet2::store() store(m_wallet_file, m_password); } //---------------------------------------------------------------------------------------------------- +void wallet2::store(const std::wstring& path) +{ + store(path, m_password); +} +//---------------------------------------------------------------------------------------------------- void wallet2::store(const std::wstring& path_to_save, const std::string& password) { LOG_PRINT_L0("(before storing: pending_key_images: " << m_pending_key_images.size() << ", pki file elements: " << m_pending_key_images_file_container.size() << ", tx_keys: " << m_tx_keys.size() << ")"); diff --git a/src/wallet/wallet2.h b/src/wallet/wallet2.h index 0664f08c..783aeb39 100644 --- a/src/wallet/wallet2.h +++ b/src/wallet/wallet2.h @@ -446,6 +446,7 @@ namespace tools void restore(const std::wstring& path, const std::string& pass, const std::string& restore_key); void load(const std::wstring& wallet, const std::string& password); void store(); + void store(const std::wstring& path); void store(const std::wstring& path, const std::string& password); void store_watch_only(const std::wstring& path, const std::string& password) const; bool store_keys(std::string& buff, const std::string& password, bool store_as_watch_only = false);