Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing more mining code: miningHashRate, isMining, startMining, stopMining #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/wallet/api/wallet2_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1164,21 +1164,9 @@ struct WalletManager
//! returns current network difficulty
virtual uint64_t networkDifficulty() = 0;

//! returns current mining hash rate (0 if not mining)
virtual double miningHashRate() = 0;

//! returns current block target
virtual uint64_t blockTarget() = 0;

//! returns true iff mining
virtual bool isMining() = 0;

//! starts mining with the set number of threads
virtual bool startMining(const std::string &address, uint32_t threads = 1, bool background_mining = false, bool ignore_battery = true) = 0;

//! stops mining
virtual bool stopMining() = 0;

//! resolves an OpenAlias address to a xcash address
virtual std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const = 0;

Expand Down
4 changes: 0 additions & 4 deletions src/wallet/api/wallet_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,7 @@ class WalletManagerImpl : public WalletManager
uint64_t blockchainHeight() override;
uint64_t blockchainTargetHeight() override;
uint64_t networkDifficulty() override;
double miningHashRate() override;
uint64_t blockTarget() override;
bool isMining() override;
bool startMining(const std::string &address, uint32_t threads = 1, bool background_mining = false, bool ignore_battery = true) override;
bool stopMining() override;
std::string resolveOpenAlias(const std::string &address, bool &dnssec_valid) const override;

private:
Expand Down