From 7567609e05b2f6ee84933e3d644e0903640e36c5 Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 4 Jun 2019 10:05:26 -0400 Subject: [PATCH] temp add deserialize(txRequestStr) --- src/utils/MoneroUtils.cpp | 7 +++++++ src/utils/MoneroUtils.h | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/utils/MoneroUtils.cpp b/src/utils/MoneroUtils.cpp index 0e47615..07d8e45 100644 --- a/src/utils/MoneroUtils.cpp +++ b/src/utils/MoneroUtils.cpp @@ -75,5 +75,12 @@ void MoneroUtils::binaryBlocksToJson(const std::string &bin, std::string &json) } string MoneroUtils::serialize(vector blocks) { + cout << "serialize(blocks)" << endl; + throw runtime_error("Not implemented"); +} + +MoneroTxRequest MoneroUtils::deserialize(const string& txRequestStr) { + cout << "deserialize(txRequestStr)" << endl; + cout << txRequestStr << endl; throw runtime_error("Not implemented"); } diff --git a/src/utils/MoneroUtils.h b/src/utils/MoneroUtils.h index 7bf026e..39197ef 100644 --- a/src/utils/MoneroUtils.h +++ b/src/utils/MoneroUtils.h @@ -21,7 +21,9 @@ namespace MoneroUtils void binaryBlocksToJson(const std::string &bin, std::string &json); - string serialize(vector blocks); + string serialize(const vector blocks); + + MoneroTxRequest deserialize(const string& txRequestStr); /** * Modified from core_rpc_server.cpp to return a string.