support save with get_address_file_buffer, get_keys_file_buffer,

get_cache_file_buffer
This commit is contained in:
woodser
2019-12-28 01:36:44 -05:00
parent d0dc16dc76
commit d237cfbe28
2 changed files with 20 additions and 0 deletions
+13
View File
@@ -3187,6 +3187,19 @@ namespace monero {
}
}
/**
* Wallet import and export using buffers and not the file system.
*/
std::string monero_wallet_core::get_address_file_buffer() {
return m_w2->get_address_file_buffer();
}
std::string monero_wallet_core::get_keys_file_buffer(const epee::wipeable_string& password, bool watch_only) {
return m_w2->get_keys_file_buffer(password, watch_only);
}
std::string monero_wallet_core::get_cache_file_buffer(const epee::wipeable_string& password) {
return m_w2->get_cache_file_buffer(password);
}
// ------------------------------- PRIVATE HELPERS ----------------------------
void monero_wallet_core::init_common() {
+7
View File
@@ -265,6 +265,13 @@ namespace monero {
void move_to(string path, string password);
void close(bool save = false);
/**
* Wallet import and export using buffers and not the file system.
*/
std::string get_address_file_buffer();
std::string get_keys_file_buffer(const epee::wipeable_string& password, bool watch_only);
std::string get_cache_file_buffer(const epee::wipeable_string& password);
// --------------------------------- PRIVATE --------------------------------
private: