@@ -181,7 +181,7 @@ func MakeLDPCDifficultyCalculatorAnnapurna() func(time uint64, parent *types.Hea
181
181
//fmt.Printf("block_timestamp - parent_timestamp : %v\n", x)
182
182
183
183
x .Div (x , threshold )
184
- //fmt.Printf("(block_timestamp - parent_timestamp) / 7 : %v\n", x)
184
+ //fmt.Printf("(block_timestamp - parent_timestamp) // 7 : %v\n", x)
185
185
186
186
if parent .UncleHash == types .EmptyUncleHash {
187
187
//fmt.Printf("No uncle\n")
@@ -190,9 +190,9 @@ func MakeLDPCDifficultyCalculatorAnnapurna() func(time uint64, parent *types.Hea
190
190
//fmt.Printf("Uncle block exists")
191
191
x .Sub (big2 , x )
192
192
}
193
- //fmt.Printf("(2 if len(parent_uncles) else 1) - (block_timestamp - parent_timestamp) / 7 : %v\n", x)
193
+ //fmt.Printf("(2 if len(parent_uncles) else 1) - (block_timestamp - parent_timestamp) // 7 : %v\n", x)
194
194
195
- // max((2 if len(parent_uncles) else 1) - (block_timestamp - parent_timestamp) // 9 , -99)
195
+ // max((2 if len(parent_uncles) else 1) - (block_timestamp - parent_timestamp) // 7 , -99)
196
196
if x .Cmp (bigMinus99 ) < 0 {
197
197
x .Set (bigMinus99 )
198
198
}
@@ -203,10 +203,10 @@ func MakeLDPCDifficultyCalculatorAnnapurna() func(time uint64, parent *types.Hea
203
203
//fmt.Printf("parent.Difficulty / 1024 : %v\n", y)
204
204
205
205
x .Mul (y , x )
206
- //fmt.Printf("parent.Difficulty / 1024 * max(1 - (block_timestamp - parent_timestamp) / BlockGenerationTime , -99) : %v\n", x)
206
+ //fmt.Printf("parent.Difficulty / 1024 * max(1 - (block_timestamp - parent_timestamp) // 7 , -99) : %v\n", x)
207
207
208
208
x .Add (parent .Difficulty , x )
209
- //fmt.Printf("parent.Difficulty - parent.Difficulty / 8 * max(1 - (block_timestamp - parent_timestamp) / BlockGenerationTime , -99) : %v\n", x)
209
+ //fmt.Printf("parent.Difficulty - parent.Difficulty / 8 * max(1 - (block_timestamp - parent_timestamp) // 7 , -99) : %v\n", x)
210
210
211
211
// minimum difficulty can ever be (before exponential factor)
212
212
if x .Cmp (SeoulDifficulty ) < 0 {
@@ -259,4 +259,4 @@ func SearchLevel_Seoul(difficulty *big.Int) int {
259
259
}
260
260
261
261
return level
262
- }
262
+ }
0 commit comments