Skip to content

Commit 94b489c

Browse files
committed
feat: support follow mode
1 parent d3df64c commit 94b489c

File tree

5 files changed

+12
-7
lines changed

5 files changed

+12
-7
lines changed

base-consensus-entrypoint

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ until [ "$(curl -s --max-time 10 --connect-timeout 5 -w '%{http_code}' -o /dev/n
3333
sleep 5
3434
done
3535

36+
# Write JWT secret to file
37+
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"
38+
39+
if [[ -n "${BASE_NODE_SOURCE_L2_RPC:-}" ]]; then
40+
exec ./base-consensus follow
41+
fi
42+
3643
# public-facing P2P node, advertise public IP address
3744
if PUBLIC_IP=$(get_public_ip); then
3845
echo "fetched public IP is: $PUBLIC_IP"
@@ -42,6 +49,4 @@ else
4249
fi
4350
export BASE_NODE_P2P_ADVERTISE_IP=$PUBLIC_IP
4451

45-
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"
46-
4752
exec ./base-consensus node

geth/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get -y upgrade && \
99
rm -rf /var/lib/apt/lists/*
1010

1111
RUN . /tmp/versions.env && git clone $BASE_NODE_REPO . && \
12-
git checkout tags/$BASE_NODE_TAG && \
12+
git checkout $BASE_NODE_TAG && \
1313
bash -c '[ "$(git rev-parse HEAD)" = "$BASE_NODE_COMMIT" ]' || (echo "Commit hash verification failed" && exit 1)
1414

1515
RUN cargo build --bin base-consensus --profile maxperf

nethermind/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get -y upgrade && \
99
rm -rf /var/lib/apt/lists/*
1010

1111
RUN . /tmp/versions.env && git clone $BASE_NODE_REPO . && \
12-
git checkout tags/$BASE_NODE_TAG && \
12+
git checkout $BASE_NODE_TAG && \
1313
bash -c '[ "$(git rev-parse HEAD)" = "$BASE_NODE_COMMIT" ]' || (echo "Commit hash verification failed" && exit 1)
1414

1515
RUN cargo build --bin base-consensus --profile maxperf

reth/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ RUN apt-get update && apt-get -y upgrade && \
99
rm -rf /var/lib/apt/lists/*
1010

1111
RUN . /tmp/versions.env && git clone $BASE_NODE_REPO . && \
12-
git checkout tags/$BASE_NODE_TAG && \
12+
git checkout $BASE_NODE_TAG && \
1313
bash -c '[ "$(git rev-parse HEAD)" = "$BASE_NODE_COMMIT" ]' || (echo "Commit hash verification failed" && exit 1)
1414

1515
RUN cargo build --bin base-reth-node --bin base-consensus --profile maxperf

versions.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
export BASE_NODE_COMMIT=6e54e8cbcbd27cb86bde54d3a5b0e9b4e9ea960a
1+
export BASE_NODE_COMMIT=dd44d95c3539a6c34c6a14cfdfdf0d2074969116
22
export BASE_NODE_REPO=https://github.com/base/base.git
3-
export BASE_NODE_TAG=v0.5.1
3+
export BASE_NODE_TAG=meyer9/integration
44
export NETHERMIND_COMMIT=31cb81b7328026791cdfaccd9db230c82f1db02d
55
export NETHERMIND_REPO=https://github.com/NethermindEth/nethermind.git
66
export NETHERMIND_TAG=1.36.0

0 commit comments

Comments
 (0)