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. // */