diff options
author | woodser <woodser@protonmail.com> | 2020-04-15 13:22:46 -0400 |
---|---|---|
committer | woodser <woodser@protonmail.com> | 2020-04-15 13:22:46 -0400 |
commit | 87d75584e8df95ff53a354438760088e061a6de5 (patch) | |
tree | 42051b14bad7561239af4a26e5b29f45debdd8bb /src/wallet/message_store.h | |
parent | Merge pull request #6405 (diff) | |
download | monero-87d75584e8df95ff53a354438760088e061a6de5.tar.xz |
Allow wallet2.h to run in WebAssembly
- Add abstract_http_client.h which http_client.h extends.
- Replace simple_http_client with abstract_http_client in wallet2,
message_store, message_transporter, and node_rpc_proxy.
- Import and export wallet data in wallet2.
- Use #if defined __EMSCRIPTEN__ directives to skip incompatible code.
Diffstat (limited to 'src/wallet/message_store.h')
-rw-r--r-- | src/wallet/message_store.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/wallet/message_store.h b/src/wallet/message_store.h index 637bd29a1..d40daf186 100644 --- a/src/wallet/message_store.h +++ b/src/wallet/message_store.h @@ -43,6 +43,7 @@ #include "common/i18n.h" #include "common/command_line.h" #include "wipeable_string.h" +#include "net/abstract_http_client.h" #include "message_transporter.h" #undef MONERO_DEFAULT_LOG_CATEGORY @@ -202,7 +203,8 @@ namespace mms class message_store { public: - message_store(); + message_store(std::unique_ptr<epee::net_utils::http::abstract_http_client> http_client); + // Initialize and start to use the MMS, set the first signer, this wallet itself // Filename, if not null and not empty, is used to create the ".mms" file // reset it if already used, with deletion of all signers and messages |