[go: up one dir, main page]

ProxyServer: forward request to the node itself

Context

Not all the endpoints of octez-node are implemented by octez-proxy-server. Some aren't doable at all... For now, when the proxy-server was not able to tackle a request it would send back to the client to try to reach the node directly, which impose that the node is also publicly available... With this patch the proxy-server contacts the node itself and return the reply from the node! So only the proxy-server needs to have a direct acces to the node.

Manually testing the MR

  • Launch a sandbox node
  • octez-proxy-server --endpoint http://localhost:18730 --rpc-addr http://0.0.0.0:8832
  • do stuff with octez-client -e http://localhost:8832 and/or fire RPCs with curl/wget/whatever

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Pierre Boutillier

Merge request reports

Loading