From 4866b1913ef1ce9486ba826c86fc884fb122ff09 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sun, 25 Dec 2016 08:11:36 +0800 Subject: [PATCH] fix: read outputs file data https://github.com/monero-project/monero/pull/1483 https://github.com/monero-project/monero/issues/1456 --- src/monero_headers.h | 2 +- src/page.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/monero_headers.h b/src/monero_headers.h index 50377b3..baf4a9c 100644 --- a/src/monero_headers.h +++ b/src/monero_headers.h @@ -12,7 +12,7 @@ #define UNSIGNED_TX_PREFIX "Monero unsigned tx set\002" #define SIGNED_TX_PREFIX "Monero signed tx set\002" #define KEY_IMAGE_EXPORT_FILE_MAGIC "Monero key image export\002" -#define OUTPUT_EXPORT_FILE_MAGIC "Monero output export\002" +#define OUTPUT_EXPORT_FILE_MAGIC "Monero output export\003" #include "net/http_base.h" diff --git a/src/page.h b/src/page.h index 320af1d..d6edf9a 100644 --- a/src/page.h +++ b/src/page.h @@ -2693,7 +2693,7 @@ public: std::string body(decoded_raw_data, header_lenght); std::stringstream iss; iss << body; - boost::archive::binary_iarchive ar(iss); + boost::archive::portable_binary_iarchive ar(iss); ar >> outputs;