@@ -105,7 +105,7 @@ unsigned int static KimotoGravityWell2(const CBlockIndex* pindexLast, const CBlo
105105 double EventHorizonDeviation;
106106 double EventHorizonDeviationFast;
107107 double EventHorizonDeviationSlow;
108- int KGW3_var = 550000 ;
108+ int KGW3_var = 999999999 ;
109109 // int64_t LastBlockTime = 0;
110110 if (BlockLastSolved == NULL || BlockLastSolved->nHeight == 0 || (uint64_t )BlockLastSolved->nHeight < PastBlocksMin) { return bnProofOfWorkLimit.GetCompact (); }
111111
@@ -160,7 +160,7 @@ unsigned int static KimotoGravityWell2(const CBlockIndex* pindexLast, const CBlo
160160 bnNew *= PastRateActualSeconds;
161161 bnNew /= PastRateTargetSeconds;
162162 }
163-
163+
164164 // KGW3 Securty Option 1 Limx Dev 26-11-2015 Not used !
165165 /*
166166 if(LastBlockTime > 0){
@@ -178,45 +178,45 @@ unsigned int static KimotoGravityWell2(const CBlockIndex* pindexLast, const CBlo
178178 bnNew *= nActualTimespan;
179179 bnNew /= PastRateTargetSeconds;
180180 */
181-
182-
183-
181+
182+
183+
184184 // Limxdev cgminer-0 KGW3 VAR Diff Break version 2 Limx Dev 7-12-2015
185185 // LogPrintf("Prediff %08x %s\n", bnNew.GetCompact(), bnNew.ToString().c_str());
186186 // 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 ;
188188 LogPrintf (" prediff %d \n " , nLongTimeLimit);// LogPrintf(" %d Block", BlockReading->nHeight );
189189 int aaa = pblock-> nTime - pindexLast->GetBlockTime ();
190190 LogPrintf (" Time since last Block - %d \n " , aaa);
191- if (BlockReading->nHeight > KGW3_var){
191+ if (BlockReading->nHeight > KGW3_var){
192192 if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit ) // 1 hours
193- {
193+ {
194194 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 ());
196196 }
197- if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *2 ) // 2 hours
198- {
197+ if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *2 ) // 2 hours
198+ {
199199 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 ());
201201 }
202- if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *3 ) // 3 hours
203- {
202+ if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *3 ) // 3 hours
203+ {
204204 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 ());
206206 }
207207 if ((pblock-> nTime - pindexLast->GetBlockTime ()) > nLongTimeLimit *4 ) // 4 hours
208- {
208+ {
209209 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 ());
211211 }
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+ {
214214 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 ());
216216 }
217217 }
218218
219-
219+
220220
221221 if (bnNew > bnProofOfWorkLimit) { bnNew = bnProofOfWorkLimit; }
222222
0 commit comments