From 95dea54afe54cf0ad4410973e53dd183556cfe6f Mon Sep 17 00:00:00 2001 From: woodser Date: Wed, 17 Jul 2019 18:09:47 -0400 Subject: [PATCH] define setAutoSync() --- src/wallet/MoneroWallet.cpp | 5 +++++ src/wallet/MoneroWallet.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index 298fd6c..e976bbb 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -1011,6 +1011,11 @@ namespace monero { return syncAux(startHeight, boost::none, listener); } + void MoneroWallet::setAutoSync(bool autoSync) { + cout << "setAutoSync(" << autoSync << ")" << endl; + throw runtime_error("Not implemented"); + } + // rescanBlockchain // isMultisigImportNeeded diff --git a/src/wallet/MoneroWallet.h b/src/wallet/MoneroWallet.h index fe3310b..cf43c94 100644 --- a/src/wallet/MoneroWallet.h +++ b/src/wallet/MoneroWallet.h @@ -343,6 +343,13 @@ namespace monero { MoneroSyncResult sync(uint64_t startHeight, MoneroSyncListener& listener); + /** + * Enable or disable automatic synchronization. + * + * @param autoSync specifies if automatic synchronization is enabled or disabled + */ + void setAutoSync(bool autoSync); + // /** // * Rescan the blockchain from scratch, losing any information which cannot be recovered from // * the blockchain itself.