-
Notifications
You must be signed in to change notification settings - Fork 172
/
global_objects_noui.hpp
executable file
·153 lines (136 loc) · 3.96 KB
/
global_objects_noui.hpp
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
#ifndef GLOBAL_OBJECTS_NOUI_HPP
#define GLOBAL_OBJECTS_NOUI_HPP
#include <string>
#include <map>
extern int nBoincUtilization;
extern std::string sRegVer;
extern int nRegVersion;
extern bool bCPIDsLoaded;
extern bool bProjectsInitialized;
extern bool bNetAveragesLoaded;
extern bool bForceUpdate;
extern bool bCheckedForUpgrade;
extern bool bCheckedForUpgradeLive;
extern bool bGlobalcomInitialized;
extern bool bGridcoinGUILoaded;
struct StructCPID
{
bool initialized;
bool Iscpidvalid;
double rac;
double utc;
double rectime;
double age;
double verifiedrac;
double verifiedutc;
double verifiedrectime;
double verifiedage;
uint32_t entries;
double AverageRAC;
double NetworkProjects;
double NetworkRAC;
double TotalRAC;
double TotalNetworkRAC;
double Magnitude;
double PaymentMagnitude;
double owed;
double payments;
double interestPayments;
double verifiedTotalRAC;
double verifiedMagnitude;
double TotalMagnitude;
uint32_t LowLockTime;
uint32_t HighLockTime;
double Accuracy;
double totalowed;
double LastPaymentTime;
double ResearchSubsidy;
double ResearchAverageMagnitude;
double EarliestPaymentTime;
double InterestSubsidy;
double PaymentTimespan;
int32_t LastBlock;
double NetworkMagnitude;
double NetworkAvgMagnitude;
std::string cpid;
std::string emailhash;
std::string cpidhash;
std::string projectname;
std::string team;
std::string verifiedteam;
std::string boincpublickey;
std::string link;
std::string errors;
std::string email;
std::string boincruntimepublickey;
std::string cpidv2;
std::string PaymentTimestamps;
std::string PaymentAmountsResearch;
std::string PaymentAmountsInterest;
std::string PaymentAmountsBlocks;
std::string BlockHash;
std::string GRCAddress;
};
struct StructCPIDCache
{
std::string xml;
bool initialized;
};
struct MiningCPID
{
double rac;
double pobdifficulty;
unsigned int diffbytes;
bool initialized;
double nonce;
double NetworkRAC;
double Magnitude;
double RSAWeight;
double LastPaymentTime;
double ResearchSubsidy;
double ResearchSubsidy2;
double ResearchAge;
double ResearchMagnitudeUnit;
double ResearchAverageMagnitude;
double InterestSubsidy;
std::string projectname;
std::string encboincpublickey;
std::string cpid;
std::string cpidhash;
std::string enccpid;
std::string aesskein;
std::string encaes;
std::string clientversion;
std::string cpidv2;
std::string email;
std::string boincruntimepublickey;
std::string GRCAddress;
std::string lastblockhash;
std::string Organization;
std::string OrganizationKey;
std::string NeuralHash;
std::string superblock;
std::string LastPORBlockHash;
std::string CurrentNeuralHash;
std::string BoincPublicKey;
std::string BoincSignature;
};
//User CPIDs
extern std::map<std::string, StructCPID> mvCPIDs;
//Verified CPIDs
extern std::map<std::string, StructCPID> mvCreditNode;
//Network Averages
extern std::map<std::string, StructCPID> mvNetwork;
extern std::map<std::string, StructCPID> mvNetworkCopy;
extern std::map<std::string, StructCPID> mvMagnitudes;
extern std::map<std::string, StructCPID> mvMagnitudesCopy;
extern std::map<std::string, StructCPID> mvCreditNodeCPIDProject; //Contains verified CPID+Projects;
extern std::map<std::string, StructCPID> mvCreditNodeCPID; //Contains verified CPID total Magnitude;
//Caches
extern std::map<std::string, StructCPIDCache> mvCPIDCache; //Contains cached blocknumbers for CPID+Projects;
extern std::map<std::string, StructCPIDCache> mvAppCache; //Contains cached blocknumbers for CPID+Projects;
//Global CPU Mining CPID:
extern MiningCPID GlobalCPUMiningCPID;
// Timers
extern std::map<std::string, int> mvTimers; // Contains event timers that reset after max ms duration iterator is exceeded
#endif /* GLOBAL_OBJECTS_NOUI_HPP */