Skip to content

Commit

Permalink
load Goerli metadata from goerli repo
Browse files Browse the repository at this point in the history
The `eth2-networks` repo often receives metadata updates with a delay.
Switch to `goerli` repo to obtain the latest config (Dencun scheduling)
when it is updated. This is in line with how Sepolia / Holesky work.

- eth-clients/goerli#178
  • Loading branch information
etan-status committed Dec 23, 2023
1 parent 0302261 commit ecc3fd5
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@
url = https://github.com/arnetheduck/nim-results.git
ignore = untracked
branch = master
[submodule "vendor/goerli"]
path = vendor/goerli
url = https://github.com/eth-clients/goerli
ignore = untracked
branch = main
[submodule "vendor/holesky"]
path = vendor/holesky
url = https://github.com/eth-clients/holesky
Expand Down
4 changes: 2 additions & 2 deletions beacon_chain/networking/network_metadata.nim
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ elif const_preset == "mainnet":
vendorDir & "/eth2-networks/shared/mainnet/genesis.ssz")

praterGenesis* = slurp(
vendorDir & "/eth2-networks/shared/prater/genesis.ssz")
vendorDir & "/goerli/prater/genesis.ssz")

sepoliaGenesis* = slurp(
vendorDir & "/sepolia/bepolia/genesis.ssz")
Expand All @@ -314,7 +314,7 @@ elif const_preset == "mainnet":
useBakedInGenesis = some "mainnet")

praterMetadata = loadCompileTimeNetworkMetadata(
vendorDir & "/eth2-networks/shared/prater",
vendorDir & "/goerli/prater",
some goerli,
useBakedInGenesis = some "prater")

Expand Down
2 changes: 1 addition & 1 deletion beacon_chain/networking/network_metadata_mainnet.S
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ cdecl(eth2_mainnet_genesis_size):
.quad eth2_mainnet_genesis_end - eth2_mainnet_genesis_data

eth2_goerli_genesis_data:
.incbin "eth2-networks/shared/prater/genesis.ssz"
.incbin "goerli/prater/genesis.ssz"
eth2_goerli_genesis_end:
.global cdecl(eth2_goerli_genesis_size)
.p2align 3
Expand Down
1 change: 1 addition & 0 deletions vendor/goerli
Submodule goerli added at ab09c7

0 comments on commit ecc3fd5

Please sign in to comment.