Skip to content

Commit 6771613

Browse files
committed
Prefer OP_NODE_P2P_STATIC to OP_NODE_P2P_BOOTNODES since multiaddrs are more convenient
1 parent 255b85b commit 6771613

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

justfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ ui:
107107
cd ui && yarn dev
108108

109109
playground-env:
110-
echo "OP_NODE_P2P_BOOTNODES=$(grep 'enr=' ~/.playground/devnet/logs/op-node.log | sed -n 's/.*enr=\([^ ]*\).*/\1/p')" > .env.playground
110+
echo "BUILDER_PLAYGROUND_HOST_IP=$(docker run --rm alpine nslookup host.docker.internal | awk '/Address: / && $2 !~ /:/ {print $2; exit}')" > .env.playground
111+
echo "BUILDER_PLAYGROUND_PEER_ID=$(grep 'started p2p host' ~/.playground/devnet/logs/op-node.log | sed -n 's/.*peerID=\([^ ]*\).*/\1/p' | head -1)" >> .env.playground
112+
echo "OP_NODE_P2P_STATIC=/ip4/\$BUILDER_PLAYGROUND_HOST_IP/tcp/9003/p2p/\$BUILDER_PLAYGROUND_PEER_ID" >> .env.playground
111113

112114
start-playground: playground-env (start-all "simulator")

0 commit comments

Comments
 (0)