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 args in suave-enabled-chain (devenv) docker-compose #212

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

zeroXbrock
Copy link
Member

@zeroXbrock zeroXbrock commented Feb 27, 2024

📝 Summary

Problem: can't hit the execution node (suave-enabled-chain).
request:

# assuming devenv stack is running via docker-compose
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_getBlockByNumber","params":["latest", true],"id":1}' -H "Content-Type: application/json"  http://localhost:8555

response:

curl: (56) Recv failure: Connection reset by peer

Solution: changes to suave-enabled-chain in docker-compose:

  • hosts JSON-RPC APIs on 0.0.0.0, needed for the node to listen outside the container
  • opens up CORS
  • maps the local suave-ex-node directory to access the keystore file

📚 References


  • I have seen and agree to CONTRIBUTING.md

@zeroXbrock zeroXbrock marked this pull request as ready for review February 27, 2024 23:02
@lthibault lthibault merged commit 3ce0d49 into main Feb 28, 2024
4 checks passed
@lthibault lthibault deleted the brock/devenv-docker-compose-fix branch February 28, 2024 17:00
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