Skip to content

Commit

Permalink
Merge pull request OffchainLabs#160 from EspressoSystems/release-2024…
Browse files Browse the repository at this point in the history
…0723

Release 20240723 with 20240723-consensus
  • Loading branch information
sveitser authored Jul 23, 2024
2 parents 26300e1 + 1b6f511 commit 9f4ef0d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,13 @@ RUN ./download-machine.sh consensus-v31 0x260f5fa5c3176a856893642e149cf128b5a8de

#Download Espresso WASM machine
COPY ./scripts/download-machine-espresso.sh .
#
# To use a new wasm machine specify release tag from the page
# https://github.com/EspressoSystems/nitro-espresso-integration/releases and the
# corresponding module-root.
#
RUN ./download-machine-espresso.sh 20240711 0x5409e2c3aab6db3d6cea9603646d6cdf2ac6bc1b39325939ba81a498f88f334f
# To use a new wasm machine
# 1. Create a release on github: for example YYYYMMDD-consensus
# 2. Find the module module-root.txt in the release artifacts on
# https://github.com/EspressoSystems/nitro-espresso-integration/releases
# and add the corresponding download step below.
# 3. Create a new release on github with the change: for example YYYYMMDD
RUN ./download-machine-espresso.sh 20240723-consensus 0x2422802a7cda99737209430b103689205bc8e56eab8b08c6ad409e65e45c3145

FROM golang:1.21.10-bookworm AS node-builder
WORKDIR /workspace
Expand Down
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@
yarn

python3
wget

# wasm
rust-cbindgen
Expand Down
10 changes: 9 additions & 1 deletion scripts/download-machine-espresso.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,16 @@ set -euxo pipefail
mkdir "$2"
ln -sfT "$2" latest
cd "$2"
echo "$2" > module-root.txt

url_base="https://github.com/EspressoSystems/nitro-espresso-integration/releases/download/$1"

# Download the module root from the release page
wget "$url_base/module-root.txt"

# Check that the module root specified matches the release
grep -q "$2" module-root.txt ||
(echo "Module root mismatch: specified $2 != release $(cat module-root.txt)" && exit 1)

wget "$url_base/machine.wavm.br"

status_code="$(curl -LI "$url_base/replay.wasm" -so /dev/null -w '%{http_code}')"
Expand Down

0 comments on commit 9f4ef0d

Please sign in to comment.