Skip to content

Commit

Permalink
difficulty test example
Browse files Browse the repository at this point in the history
  • Loading branch information
winsvega committed Oct 23, 2021
1 parent fbff6fe commit 4c0d2df
Show file tree
Hide file tree
Showing 2 changed files with 81 additions and 0 deletions.
67 changes: 67 additions & 0 deletions DifficultyTests/dfExample/difficultyExample.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"difficultyExample" : {
"_info" : {
"comment" : "Difficulty Formula range check",
"filling-rpc-server" : "evm version 1.10.11-unstable-9d377a96-20211019",
"filling-tool-version" : "retesteth-0.2.0-memory+commit.3c5cd2c3.Linux.g++",
"generatedTestHash" : "d5a30895003202f621f5ec24672b57a3d0fa2f9282ebb8ae13dd550467d92439",
"lllcversion" : "Version: 0.5.14-develop.2021.6.15+commit.401d5358.Linux.g++",
"source" : "src/DifficultyTestsFiller/dfExample/difficultyExampleFiller.json",
"sourceHash" : "580f1383afd84123d300f357ce1604297bfa17e8c21a382cee728460898ec620"
},
"difficultyExample-0" : {
"currentBlockNumber" : "0x0186a0",
"currentDifficulty" : "0x0201d7",
"currentTimestamp" : "0x01",
"network" : "London",
"parentDifficulty" : "0x020157",
"parentTimestamp" : "0x00",
"parentUncles" : "0x01"
},
"difficultyExample-1" : {
"currentBlockNumber" : "0x0186a0",
"currentDifficulty" : "0x0201d7",
"currentTimestamp" : "0x02",
"network" : "London",
"parentDifficulty" : "0x020157",
"parentTimestamp" : "0x00",
"parentUncles" : "0x01"
},
"difficultyExample-2" : {
"currentBlockNumber" : "0x0186a5",
"currentDifficulty" : "0x0201d7",
"currentTimestamp" : "0x01",
"network" : "London",
"parentDifficulty" : "0x020157",
"parentTimestamp" : "0x00",
"parentUncles" : "0x01"
},
"difficultyExample-3" : {
"currentBlockNumber" : "0x0186a5",
"currentDifficulty" : "0x0201d7",
"currentTimestamp" : "0x02",
"network" : "London",
"parentDifficulty" : "0x020157",
"parentTimestamp" : "0x00",
"parentUncles" : "0x01"
},
"difficultyExample-4" : {
"currentBlockNumber" : "0x0186aa",
"currentDifficulty" : "0x0201d7",
"currentTimestamp" : "0x01",
"network" : "London",
"parentDifficulty" : "0x020157",
"parentTimestamp" : "0x00",
"parentUncles" : "0x01"
},
"difficultyExample-5" : {
"currentBlockNumber" : "0x0186aa",
"currentDifficulty" : "0x0201d7",
"currentTimestamp" : "0x02",
"network" : "London",
"parentDifficulty" : "0x020157",
"parentTimestamp" : "0x00",
"parentUncles" : "0x01"
}
}
}
14 changes: 14 additions & 0 deletions src/DifficultyTestsFiller/dfExample/difficultyExampleFiller.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"difficultyExample" :
{
"_info" : {
"comment" : "Difficulty Formula range check"
},
"network" : [ "London"],
"blocknumber" : "[100000-100010;5]",
"timestampDiff" : "[1-2;1]",
"parentDifficutly" : ["131415"],
"hasUncles" : [1]
}
}

0 comments on commit 4c0d2df

Please sign in to comment.