Skip to content

Switch Prysm VC to REST API #1563

@nflaig

Description

@nflaig

I am using eth-docker to do interop testing between Lodestar and other clients. For that I am using the vc only files which works great and makes interop testing really smooth but I noticed the prysm-vc-only.yml always has builder enabled and there is no option to enable the REST API which is required to work with other clients.

https://github.com/eth-educators/eth-docker/blob/38982d69e22b669d4aeb45ac0e1a949dfb43e842/prysm-vc-only.yml#L71

Wondering if it makes sense to support a interop mode for prysm, although I can't tell if anyone besides me would actually use that. If not I think this issue can be closed by just removing the builder flag as it is already set in the entrypoint script

https://github.com/eth-educators/eth-docker/blob/38982d69e22b669d4aeb45ac0e1a949dfb43e842/prysm/docker-entrypoint-vc.sh#L33-L35

Just dropping my git diff here to make it work

diff --git a/prysm-vc-only.yml b/prysm-vc-only.yml
index 80dfc02..f5650eb 100644
--- a/prysm-vc-only.yml
+++ b/prysm-vc-only.yml
@@ -61,13 +61,15 @@ services:
       - --grpc-gateway-port
       - ${KEY_API_PORT:-7500}
       - --grpc-gateway-corsdomain=*
-      - --beacon-rpc-gateway-provider
-      - consensus:5052
+#      - --beacon-rpc-gateway-provider
+#      - consensus:5052
       - --suggested-fee-recipient
       - ${FEE_RECIPIENT}
-      - --enable-builder
       - --wallet-password-file
       - /var/lib/prysm/password.txt
+      - --beacon-rest-api-provider
+      - ${CL_NODE}
+      - --enable-beacon-rest-api
     labels:
       - traefik.enable=true
       - traefik.http.routers.prysm.entrypoints=web,websecure
@@ -140,8 +142,8 @@ services:
       - --${NETWORK}
       - --backup-dir=/validator_keys
       - --backup-password-file=/var/lib/prysm/password.txt
-    depends_on:
-      - consensus
+#    depends_on:
+#      - consensus

   validator-keys:
     profiles: ["tools"]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions