@@ -105,7 +105,7 @@ unsigned int static KimotoGravityWell2(const CBlockIndex* pindexLast, const CBlo
105
105
double EventHorizonDeviation;
106
106
double EventHorizonDeviationFast;
107
107
double EventHorizonDeviationSlow;
108
- int KGW3_var = 550000 ;
108
+ int KGW3_var = 999999999 ;
109
109
// int64_t LastBlockTime = 0;
110
110
if (BlockLastSolved == NULL || BlockLastSolved->nHeight == 0 || (uint64_t )BlockLastSolved->nHeight < PastBlocksMin) { return bnProofOfWorkLimit.GetCompact (); }
111
111
@@ -160,7 +160,7 @@ unsigned int static KimotoGravityWell2(const CBlockIndex* pindexLast, const CBlo
160
160
bnNew *= PastRateActualSeconds;
161
161
bnNew /= PastRateTargetSeconds;
162
162
}
163
-
163
+
164
164
// KGW3 Securty Option 1 Limx Dev 26-11-2015 Not used !
165
165
/*
166
166
if(LastBlockTime > 0){
@@ -178,45 +178,45 @@ unsigned int static KimotoGravityWell2(const CBlockIndex* pindexLast, const CBlo
178
178
bnNew *= nActualTimespan;
179
179
bnNew /= PastRateTargetSeconds;
180
180
*/
181
-
182
-
183
-
181
+
182
+
183
+
184
184
// Limxdev cgminer-0 KGW3 VAR Diff Break version 2 Limx Dev 7-12-2015
185
185
// LogPrintf("Prediff %08x %s\n", bnNew.GetCompact(), bnNew.ToString().c_str());
186
186
// Reduce difficulty if current block generation time has already exceeded maximum time limit.
187
- const int nLongTimeLimit = 1 * 60 * 60 ;
187
+ const int nLongTimeLimit = 1 * 60 * 60 ;
188
188
LogPrintf (" prediff %d \n " , nLongTimeLimit);// LogPrintf(" %d Block", BlockReading->nHeight );
189
189
int aaa = pblock-> nTime - pindexLast->GetBlockTime ();
190
190
LogPrintf (" Time since last Block - %d \n " , aaa);
191
- if (BlockReading->nHeight > KGW3_var){
191
+ if (BlockReading->nHeight > KGW3_var){
192
192
if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit ) // 1 hours
193
- {
193
+ {
194
194
const int nLongTimebnNew = 2 ; bnNew = bnNew * nLongTimebnNew;
195
- LogPrintf (" <MEC> KGW3 1h cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
195
+ LogPrintf (" <MEC> KGW3 1h cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
196
196
}
197
- if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *2 ) // 2 hours
198
- {
197
+ if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *2 ) // 2 hours
198
+ {
199
199
const int nLongTimebnNew = 3 ; bnNew = bnNew * nLongTimebnNew;
200
- LogPrintf (" <MEC> KGW3 1h cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
200
+ LogPrintf (" <MEC> KGW3 1h cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
201
201
}
202
- if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *3 ) // 3 hours
203
- {
202
+ if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *3 ) // 3 hours
203
+ {
204
204
const int nLongTimebnNew = 4 ; bnNew = bnNew * nLongTimebnNew;
205
- LogPrintf (" <MEC> KGW3 1h - cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
205
+ LogPrintf (" <MEC> KGW3 1h - cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
206
206
}
207
207
if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *4 ) // 4 hours
208
- {
208
+ {
209
209
const int nLongTimebnNew = 5 ; bnNew = bnNew * nLongTimebnNew;
210
- LogPrintf (" <MEC> KGW3 3h - cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
210
+ LogPrintf (" <MEC> KGW3 3h - cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
211
211
}
212
- if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *5 ) // Backupfunction after 5 hours
213
- {
212
+ if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *5 ) // Backupfunction after 5 hours
213
+ {
214
214
const int nLongTimebnNew = 100 ; bnNew = bnNew * nLongTimebnNew;
215
- LogPrintf (" <MEC> KGW3 5h - cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
215
+ LogPrintf (" <MEC> KGW3 5h - cute diff %08x %s\n " , bnNew.GetCompact (), bnNew.ToString ().c_str ());
216
216
}
217
217
}
218
218
219
-
219
+
220
220
221
221
if (bnNew > bnProofOfWorkLimit) { bnNew = bnProofOfWorkLimit; }
222
222
0 commit comments