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 op-node-entrypoint #144

Closed
wants to merge 1 commit into from
Closed

Fix op-node-entrypoint #144

wants to merge 1 commit into from

Conversation

feld
Copy link

@feld feld commented Nov 7, 2023

@@ -2,7 +2,7 @@
set -eu

# wait until local geth comes up (authed so will return 401 without token)
until [ "$(curl -s -w '%{http_code}' -o /dev/null "${OP_NODE_L2_ENGINE_RPC//ws/http}")" -eq 401 ]; do
until [ "$(curl -s -w '%{http_code}' -o /dev/null "${OP_NODE_L2_ENGINE_RPC}")" -eq 401 ]; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

${OP_NODE_L2_ENGINE_RPC//ws/http} is correct

what we are doing here is replacing the ws://geth:8551 with http://geth:8551, so that we can do a simple curl of the http endpoint rather than connecting to a ws endpoint

as mentioned in #143, ${OP_NODE_L2_ENGINE_RPC/ws/http} is probably more correct (removal of the first /), feel free to update to that

@mdehoog mdehoog closed this Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants