Skip to content

Commit bc619f1

Browse files
committed
Fix follow/node mode
1 parent 70afa00 commit bc619f1

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

base-consensus-entrypoint

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,9 @@ export BASE_NODE_P2P_ADVERTISE_IP=$PUBLIC_IP
4444

4545
echo "$BASE_NODE_L2_ENGINE_AUTH_RAW" > "$BASE_NODE_L2_ENGINE_AUTH"
4646

47-
exec ./base-consensus
47+
if [[ -n "${BASE_NODE_SOURCE_L2_RPC:-}" ]]; then
48+
echo "Running base-consensus in follow mode because BASE_NODE_SOURCE_L2_RPC is set"
49+
exec ./base-consensus follow
50+
else
51+
exec ./base-consensus node
52+
fi

0 commit comments

Comments
 (0)