Skip to content

Commit 1a97dfe

Browse files
authored
fix: base-consensus mode (#999)
1 parent e684286 commit 1a97dfe

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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)