mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
add diagnostic message to test_difficulty.nim
This commit is contained in:
parent
a45792cede
commit
8a09e97d4d
@ -50,7 +50,7 @@ template runTests(name: string, hex: bool, calculator: typed) =
|
||||
ommersHash: t.parentUncles)
|
||||
|
||||
let diff = calculator(times.fromUnix(t.currentTimeStamp), p)
|
||||
test title:
|
||||
test name & " " & title:
|
||||
check diff == t.currentDifficulty
|
||||
|
||||
proc difficultyMain*() =
|
||||
@ -60,3 +60,6 @@ proc difficultyMain*() =
|
||||
runTests("Homestead", true, calcDifficultyHomestead)
|
||||
runTests("Frontier", true, calcDifficultyFrontier)
|
||||
runTests("", false, calcDifficulty)
|
||||
|
||||
when isMainModule:
|
||||
difficultyMain()
|
||||
|
Loading…
x
Reference in New Issue
Block a user