Skip to content

Commit

Permalink
Added setter and getter for the update interval. Default is 2000ms.
Browse files Browse the repository at this point in the history
This, and the latter commit, closes bitcoin#5.
  • Loading branch information
Michael Gronager authored and Michael Gronager committed Jan 23, 2012
1 parent c0638b7 commit 2e9eab1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/btcMine/Miner.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ class Miner : boost::noncopyable {
/// Check generation performance.
const int64 hashesPerSecond() const { return _hashes_per_second; }

/// Setter and Getter for the update interval in millisec.
const unsigned int getUpdateInterval() const { return _update_interval; }
void setUpdateInterval(unsigned int t) { _update_interval = t; }

/// Interface to a Hashing algorithm. The hashing algorithm takes a <block>, tries <nonces> hashes
/// of the block header and returns if the proof of work condition is met (true) or all
/// hashes has been tried (false).
Expand Down

0 comments on commit 2e9eab1

Please sign in to comment.