-
Notifications
You must be signed in to change notification settings - Fork 26
/
GenerationWork.cpp
35 lines (26 loc) · 1002 Bytes
/
GenerationWork.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
GPU plot generator for Burst coin.
Author: Cryo
Bitcoin: 138gMBhCrNkbaiTCmUhP9HLU9xwn5QKZgD
Burst: BURST-YA29-QCEW-QXC3-BKXDL
Based on the code of the official miner and dcct's plotgen.
*/
#include "GenerationWork.h"
namespace cryo {
namespace gpuPlotGenerator {
GenerationWork::GenerationWork(const std::shared_ptr<GenerationDevice>& p_device, unsigned long long p_startNonce, unsigned int p_workSize)
: m_device(p_device), m_startNonce(p_startNonce), m_workSize(p_workSize), m_status(GenerationStatus::Generating) {
}
GenerationWork::GenerationWork(const GenerationWork& p_other)
: m_device(p_other.m_device), m_startNonce(p_other.m_startNonce), m_workSize(p_other.m_workSize), m_status(p_other.m_status) {
}
GenerationWork::~GenerationWork() throw () {
}
GenerationWork& GenerationWork::operator=(const GenerationWork& p_other) {
m_device = p_other.m_device;
m_startNonce = p_other.m_startNonce;
m_workSize = p_other.m_workSize;
m_status = p_other.m_status;
return *this;
}
}}