From c09fe42e92e39c0bc689ad6f66de327248b76e08 Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 4 Jul 2019 12:28:05 -0400 Subject: [PATCH] define sweepOutput() --- src/wallet/MoneroWallet.cpp | 6 ++++++ src/wallet/MoneroWallet.h | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index ffdd785..8751b75 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -1250,6 +1250,12 @@ namespace monero { return txs; } + shared_ptr MoneroWallet::sweepOutput(const MoneroSendRequest& request) const { + cout << "sweepOutput()" << endl; + cout << "MoneroSendRequest: " << request.serialize() << endl; + throw runtime_error("Not implemented"); + } + vector MoneroWallet::relayTxs(const vector& txMetadatas) { cout << "relayTxs()" << endl; diff --git a/src/wallet/MoneroWallet.h b/src/wallet/MoneroWallet.h index d26024f..b3f5ebe 100644 --- a/src/wallet/MoneroWallet.h +++ b/src/wallet/MoneroWallet.h @@ -663,15 +663,15 @@ namespace monero { // * @return the resulting transactions // */ // public List sendSplit(int accountIndex, string address, BigInteger sendAmount, MoneroSendPriority priority); -// -// /** -// * Sweep an output with a given key image. -// * -// * @param request configures the sweep transaction -// * @return the resulting transaction from sweeping an output -// */ -// public MoneroTxWallet sweepOutput(MoneroSendRequest request); -// + + /** + * Sweep an output with a given key image. + * + * @param request configures the sweep transaction + * @return the resulting transaction from sweeping an output + */ + shared_ptr sweepOutput(const MoneroSendRequest& request) const; + // /** // * Sweep an output with a given key image. // *