Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Support cross compatibility with vanilla consensus-v32 #38

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM debian:bookworm-slim AS brotli-wasm-builder
FROM debian:bookworm-slim AS brotli-wasm-builder
WORKDIR /workspace
RUN apt-get update && \
apt-get install -y cmake make git lbzip2 python3 xz-utils && \
Expand Down Expand Up @@ -228,7 +228,9 @@ COPY ./scripts/download-machine.sh .
#RUN ./download-machine.sh consensus-v20 0x8b104a2e80ac6165dc58b9048de12f301d70b02a0ab51396c22b4b4b802a16a4
# RUN ./download-machine.sh consensus-v30 0xb0de9cb89e4d944ae6023a3b62276e54804c242fd8c4c2d8e6cc4450f5fa8b1b && true
# RUN ./download-machine.sh consensus-v31 0x260f5fa5c3176a856893642e149cf128b5a8de9f828afec8d11184415dd8dc69
# RUN ./download-machine.sh consensus-v32 0x184884e1eb9fefdc158f6c8ac912bb183bf3cf83f0090317e0bc4ac5860baa39
RUN ./download-machine.sh consensus-v32 0x184884e1eb9fefdc158f6c8ac912bb183bf3cf83f0090317e0bc4ac5860baa39
# TODO: Insert eigenda machine here once we're post audit and have a final artifact to push
# RUN ./download-machine.sh consensus-eigenda-v32 0x...0

FROM golang:1.21.10-bookworm AS node-builder
WORKDIR /workspace
Expand Down
6 changes: 0 additions & 6 deletions arbnode/batch_poster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1258,12 +1258,6 @@ func (b *BatchPoster) maybePostSequencerBatch(ctx context.Context) (bool, error)
allMsgs: make(map[arbutil.MessageIndex]*arbostypes.MessageWithMetadata),
}
}
if b.config().CheckBatchCorrectness {
b.building.muxBackend = &simulatedMuxBackend{
batchSeqNum: batchPosition.NextSeqNum,
allMsgs: make(map[arbutil.MessageIndex]*arbostypes.MessageWithMetadata),
}
}
}
msgCount, err := b.streamer.GetMessageCount()
if err != nil {
Expand Down
14 changes: 14 additions & 0 deletions scripts/download-machine-eigenda.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
set -e

mkdir "$2"
ln -sfT "$2" latest
cd "$2"
echo "$2" > module-root.txt
url_base="https://github.com/Layr-Labs/nitro/releases/download/$1"
wget "$url_base/machine.wavm.br"

status_code="$(curl -LI "$url_base/replay.wasm" -so /dev/null -w '%{http_code}')"
if [ "$status_code" -ne 404 ]; then
wget "$url_base/replay.wasm"
fi
Loading