-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcurrentheaderblock.cpp
98 lines (78 loc) · 1.65 KB
/
currentheaderblock.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#include "currentheaderblock.h"
#include <QDebug>
CurrentHeaderBlock::CurrentHeaderBlock(QObject *parent) : QObject(parent)
{
}
int CurrentHeaderBlock::version() const
{
return m_version;
}
void CurrentHeaderBlock::setVersion(const int &version)
{
if (m_version == version )
return;
m_version = version;
}
int CurrentHeaderBlock::num() const
{
qDebug() << "get num" << m_num;
return m_num;
}
void CurrentHeaderBlock::setNum(const int &num)
{
qDebug() << "set num" << num;
if (m_num == num )
return;
m_num = num;
}
QString CurrentHeaderBlock::prev_id() const
{
return m_prev_id;
}
void CurrentHeaderBlock::setPrev_id(const QString &prev_id)
{
if (m_prev_id == prev_id )
return;
m_prev_id = prev_id;
}
QDateTime CurrentHeaderBlock::timestamp() const
{
return m_timestamp;
}
void CurrentHeaderBlock::setTimestamp(const QDateTime ×tamp)
{
if (m_timestamp == timestamp )
return;
m_timestamp = timestamp;
emit blockHeaderChanged();
}
QString CurrentHeaderBlock::genPK() const
{
return m_genPK;
}
void CurrentHeaderBlock::setGenPK(const QString &genPK)
{
if (m_genPK == genPK )
return;
m_genPK = genPK;
}
QString CurrentHeaderBlock::genSIG() const
{
return m_genSIG;
}
void CurrentHeaderBlock::setGenSIG(const QString &genSIG)
{
if (m_genSIG == genSIG )
return;
m_genSIG = genSIG;
}
QString CurrentHeaderBlock::transactionID() const
{
return m_transactionID;
}
void CurrentHeaderBlock::setTransactionID(const QString &transactionID)
{
if (m_transactionID == transactionID )
return;
m_transactionID = transactionID;
}