From 9ae62176fb2098cf8ca3d4d3aa993c52a4bfe553 Mon Sep 17 00:00:00 2001 From: woodser Date: Tue, 2 Jul 2019 22:01:21 -0400 Subject: [PATCH] define startMining() --- src/wallet/MoneroWallet.cpp | 5 +++++ src/wallet/MoneroWallet.h | 20 ++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/wallet/MoneroWallet.cpp b/src/wallet/MoneroWallet.cpp index 6aa6009..d90727c 100644 --- a/src/wallet/MoneroWallet.cpp +++ b/src/wallet/MoneroWallet.cpp @@ -1599,6 +1599,11 @@ namespace monero { return wallet2->import_outputs_from_str(blob); } + void MoneroWallet::startMining(uint64_t numThreads, boost::optional backgroundMining, boost::optional ignoreBattery) { + cout << "startMining" << endl; + throw runtime_error("Not implemented"); + } + void MoneroWallet::save() { cout << "save()" << endl; wallet2->store(); diff --git a/src/wallet/MoneroWallet.h b/src/wallet/MoneroWallet.h index 0eca0f8..46a3ccc 100644 --- a/src/wallet/MoneroWallet.h +++ b/src/wallet/MoneroWallet.h @@ -1029,16 +1029,16 @@ namespace monero { // * @return the attribute's value // */ // public string getAttribute(string key); -// -// /** -// * Start mining. -// * -// * @param numThreads is the number of threads created for mining (optional) -// * @param backgroundMining specifies if mining should occur in the background (optional) -// * @param ignoreBattery specifies if the battery should be ignored for mining (optional) -// */ -// public void startMining(Integer numThreads, Boolean backgroundMining, Boolean ignoreBattery); -// + + /** + * Start mining. + * + * @param numThreads is the number of threads created for mining (optional) + * @param backgroundMining specifies if mining should occur in the background (optional) + * @param ignoreBattery specifies if the battery should be ignored for mining (optional) + */ + void startMining(uint64_t numThreads, boost::optional backgroundMining, boost::optional ignoreBattery); + // /** // * Stop mining. // */