Skip to content

Commit

Permalink
Merge pull request #51 from ethpandaops/holesky
Browse files Browse the repository at this point in the history
add holesky
  • Loading branch information
barnabasbusa authored Aug 21, 2023
2 parents 089395a + 45bab35 commit 21ae170
Show file tree
Hide file tree
Showing 6 changed files with 3,109 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/el-gen/genesis_besu.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
mainnet_config_path = "/apps/el-gen/mainnet/besu_genesis.json"
sepolia_config_path = "/apps/el-gen/sepolia/besu_genesis.json"
goerli_config_path = "/apps/el-gen/goerli/besu_genesis.json"
holesky_config_path = "/apps/el-gen/holesky/besu_genesis.json"

if len(sys.argv) > 1:
testnet_config_path = sys.argv[1]
Expand All @@ -28,6 +29,10 @@
with open(sepolia_config_path) as m:
sepolia_json = json.loads(m.read())
out = sepolia_json
elif int(data['chain_id']) == 17000:
with open(holesky_config_path) as m:
holesky_json = json.loads(m.read())
out = holesky_json
else:
out = {
"config": {
Expand Down
5 changes: 5 additions & 0 deletions apps/el-gen/genesis_chainspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
mainnet_config_path = "/apps/el-gen/mainnet/chainspec.json"
sepolia_config_path = "/apps/el-gen/sepolia/chainspec.json"
goerli_config_path = "/apps/el-gen/goerli/chainspec.json"
holesky_config_path = "/apps/el-gen/holesky/chainspec.json"

if len(sys.argv) > 1:
testnet_config_path = sys.argv[1]
Expand All @@ -28,6 +29,10 @@
with open(sepolia_config_path) as m:
sepolia_json = json.loads(m.read())
out = sepolia_json
elif int(data['chain_id']) == 17000:
with open(holesky_config_path) as m:
holesky_json = json.loads(m.read())
out = holesky_json
else:
out = {
"name": "Testnet",
Expand Down
5 changes: 5 additions & 0 deletions apps/el-gen/genesis_geth.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
mainnet_config_path = "/apps/el-gen/mainnet/genesis.json"
sepolia_config_path = "/apps/el-gen/sepolia/genesis.json"
goerli_config_path = "/apps/el-gen/goerli/genesis.json"
holesky_config_path = "/apps/el-gen/holesky/genesis.json"

if len(sys.argv) > 1:
testnet_config_path = sys.argv[1]
Expand All @@ -28,6 +29,10 @@
with open(sepolia_config_path) as m:
sepolia_json = json.loads(m.read())
out = sepolia_json
elif int(data['chain_id']) == 17000:
with open(holesky_config_path) as m:
holesky_json = json.loads(m.read())
out = holesky_json
else:
out = {
"config": {
Expand Down
Loading

0 comments on commit 21ae170

Please sign in to comment.