File tree 3 files changed +11
-12
lines changed 3 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 10
10
HashRateCounter::HashRateCounter () : _parent(nullptr ){};
11
11
HashRateCounter::HashRateCounter (HashRateCounterRef parent) : _parent(parent){};
12
12
13
- /* * Hash rate counter increment implementation. */
14
13
void HashRateCounter::Increment (int64_t amount)
15
14
{
16
15
// Set start time if not set and return
Original file line number Diff line number Diff line change @@ -27,22 +27,22 @@ struct HashRateCounter : public std::enable_shared_from_this<HashRateCounter> {
27
27
HashRateCounter ();
28
28
explicit HashRateCounter (HashRateCounterRef counter);
29
29
30
- /* * Returns hash rate per second */
30
+ // Returns hash rate per second
31
31
operator int64_t () { return _count_per_sec; };
32
32
33
- /* * Creates new counter */
33
+ // Creates new counter
34
34
static HashRateCounterRef Make () { return std::make_shared<HashRateCounter>(); }
35
35
36
- /* * Creates new child counter */
36
+ // Creates new child counter
37
37
HashRateCounterRef MakeChild () { return std::make_shared<HashRateCounter>(shared_from_this ()); }
38
38
39
- /* * Increments counter */
39
+ // Increments counter
40
40
void Increment (int64_t amount);
41
41
42
- /* * Resets counter and timer */
42
+ // Resets counter and timer
43
43
void Reset ();
44
44
45
- /* * Returns start time */
45
+ // Returns start time
46
46
int64_t start () const { return _timer_start; };
47
47
};
48
48
Original file line number Diff line number Diff line change @@ -22,20 +22,20 @@ class MinerBase
22
22
MinerBase (MinerContextRef ctx, std::size_t device_index);
23
23
virtual ~MinerBase () = default ;
24
24
25
- /* * Starts miner loop */
25
+ // Starts miner loop
26
26
void Loop ();
27
27
28
- /* * Starts miner loop */
28
+ // Starts miner loop
29
29
void operator ()() { Loop (); };
30
30
31
- /* * Returns miner device name */
31
+ // Returns miner device name
32
32
virtual const char * DeviceName () = 0;
33
33
34
34
protected:
35
- /* * Processes a new found solution */
35
+ // Processes a new found solution
36
36
void ProcessFoundSolution (const CBlock& block, const uint256& hash);
37
37
38
- /* * tries to mine a block */
38
+ // tries to mine a block
39
39
virtual int64_t TryMineBlock (CBlock& block) = 0;
40
40
41
41
// Solution must be lower or equal to
You can’t perform that action at this time.
0 commit comments