From bf9e2d516e50734cd5bd5c23937a9b70f375db05 Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 2 Jul 2019 08:45:33 -0400 Subject: [PATCH] implement getOutputsHex() stack --- src/wallet/MoneroWallet.cpp | 4 ++++ src/wallet/MoneroWallet.h | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index 4cc7e03..a642cb5 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -1337,6 +1337,10 @@ namespace monero { return sendRequest; } + string MoneroWallet::getOutputsHex() const { + return epee::string_tools::buff_to_hex_nodelimer(wallet2->export_outputs_to_str(true)); + } + void MoneroWallet::save() { cout << "save()" << endl; wallet2->store(); diff --git a/src/wallet/MoneroWallet.h b/src/wallet/MoneroWallet.h index b020f1a..7fad8f6 100644 --- a/src/wallet/MoneroWallet.h +++ b/src/wallet/MoneroWallet.h @@ -999,13 +999,13 @@ namespace monero { */ shared_ptr parsePaymentUri(const string& uri) const; -// /** -// * Export all outputs in hex format. -// * -// * @return all outputs in hex format, null if no outputs -// */ -// public string getOutputsHex(); -// + /** + * Export all outputs in hex format. + * + * @return all outputs in hex format, empty string if no outputs + */ + string getOutputsHex() const; + // /** // * Import outputs in hex format. // *