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.
This commit is contained in:
woodser
2020-04-15 13:22:46 -04:00
parent 7c74e1919e
commit 87d75584e8
16 changed files with 517 additions and 318 deletions
+1 -1
View File
@@ -48,7 +48,7 @@
namespace mms
{
message_store::message_store()
message_store::message_store(std::unique_ptr<epee::net_utils::http::abstract_http_client> http_client) : m_transporter(std::move(http_client))
{
m_active = false;
m_auto_send = false;