Skip to content

Commit 2e4a8f6

Browse files
committed
Cleanup miner comments
1 parent f23fd45 commit 2e4a8f6

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

src/miner/internal/hash-rate-counter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
HashRateCounter::HashRateCounter() : _parent(nullptr){};
1111
HashRateCounter::HashRateCounter(HashRateCounterRef parent) : _parent(parent){};
1212

13-
/** Hash rate counter increment implementation. */
1413
void HashRateCounter::Increment(int64_t amount)
1514
{
1615
// Set start time if not set and return

src/miner/internal/hash-rate-counter.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,22 @@ struct HashRateCounter : public std::enable_shared_from_this<HashRateCounter> {
2727
HashRateCounter();
2828
explicit HashRateCounter(HashRateCounterRef counter);
2929

30-
/** Returns hash rate per second */
30+
// Returns hash rate per second
3131
operator int64_t() { return _count_per_sec; };
3232

33-
/** Creates new counter */
33+
// Creates new counter
3434
static HashRateCounterRef Make() { return std::make_shared<HashRateCounter>(); }
3535

36-
/** Creates new child counter */
36+
// Creates new child counter
3737
HashRateCounterRef MakeChild() { return std::make_shared<HashRateCounter>(shared_from_this()); }
3838

39-
/** Increments counter */
39+
// Increments counter
4040
void Increment(int64_t amount);
4141

42-
/** Resets counter and timer */
42+
// Resets counter and timer
4343
void Reset();
4444

45-
/** Returns start time */
45+
// Returns start time
4646
int64_t start() const { return _timer_start; };
4747
};
4848

src/miner/internal/miner-base.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ class MinerBase
2222
MinerBase(MinerContextRef ctx, std::size_t device_index);
2323
virtual ~MinerBase() = default;
2424

25-
/** Starts miner loop */
25+
// Starts miner loop
2626
void Loop();
2727

28-
/** Starts miner loop */
28+
// Starts miner loop
2929
void operator()() { Loop(); };
3030

31-
/** Returns miner device name */
31+
// Returns miner device name
3232
virtual const char* DeviceName() = 0;
3333

3434
protected:
35-
/** Processes a new found solution */
35+
// Processes a new found solution
3636
void ProcessFoundSolution(const CBlock& block, const uint256& hash);
3737

38-
/** tries to mine a block */
38+
// tries to mine a block
3939
virtual int64_t TryMineBlock(CBlock& block) = 0;
4040

4141
// Solution must be lower or equal to

0 commit comments

Comments
 (0)