Skip to content

Commit

Permalink
Updates for sepolia (Snowfork#1129)
Browse files Browse the repository at this point in the history
* Updates for sepolia

* Update lodestar

* Update script

* Fix generate checkpoint
  • Loading branch information
yrong authored Jan 31, 2024
1 parent ec6efea commit ef78131
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lodestar
Submodule lodestar updated 379 files
2 changes: 1 addition & 1 deletion scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ echo "Installing web packages"
echo "Download geth to replace the nix version"
OS=$(uname -s | tr A-Z a-z)
MACHINE_TYPE=$(uname -m | tr A-Z a-z)
geth_package=geth-$OS-$MACHINE_TYPE-1.13.10-bc0be1b1
geth_package=geth-$OS-$MACHINE_TYPE-1.13.11-8f7eb9cc
curl https://gethstore.blob.core.windows.net/builds/$geth_package.tar.gz -o /tmp/geth.tar.gz
mkdir -p $GOPATH/bin
tar -xvf /tmp/geth.tar.gz -C $GOPATH
Expand Down
2 changes: 1 addition & 1 deletion web/packages/test/scripts/build-binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ build_relayer() {
set_slot_time() {
local new_value=$1
echo "Hack lodestar for faster slot time"
local preset_mainnet_config_file="$root_dir/lodestar/packages/config/src/chainConfig/presets/mainnet.ts"
local preset_mainnet_config_file="$root_dir/lodestar/packages/config/src/chainConfig/configs/mainnet.ts"
if [[ "$(uname)" == "Darwin" && -z "${IN_NIX_SHELL:-}" ]]; then
gsed -i "s/SECONDS_PER_SLOT: .*/SECONDS_PER_SLOT: $new_value,/g" $preset_mainnet_config_file
else
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions web/packages/test/scripts/start-relayer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,16 @@ config_relayer() {
config/parachain-relay.json >$output_dir/parachain-relay-penpal.json

# Configure beacon relay
local deneb_forked_epoch=132608
if [ "$eth_fast_mode" == "true" ]; then
deneb_forked_epoch=0
fi
jq \
--arg beacon_endpoint_http $beacon_endpoint_http \
--argjson deneb_forked_epoch $deneb_forked_epoch \
'
.source.beacon.endpoint = $beacon_endpoint_http
| .source.beacon.spec.denebForkedEpoch = $deneb_forked_epoch
' \
config/beacon-relay.json >$output_dir/beacon-relay.json

Expand Down
4 changes: 0 additions & 4 deletions web/packages/test/scripts/start-services.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ echo "Starting ethereum nodes"
if [ "$eth_network" == "localhost" ]; then
source scripts/deploy-ethereum.sh
deploy_ethereum
else
source scripts/start-goerli.sh
# deploy beacon node locally for fast response time or retrieving beacon state from remote could be very slow
deploy_goerli
fi

# 3. start polkadot
Expand Down

0 comments on commit ef78131

Please sign in to comment.