From ca07d7245397d7c7efac729326b0c356fc6c471d Mon Sep 17 00:00:00 2001 From: Luke Anderson Date: Thu, 29 Aug 2019 12:42:45 +1000 Subject: [PATCH] Removed methods for 'chain_id', since this is no longer applicable to ETH2. --- beacon_node/rest_api/src/lib.rs | 1 - docs/api_spec.yaml | 22 ---------------------- 2 files changed, 23 deletions(-) diff --git a/beacon_node/rest_api/src/lib.rs b/beacon_node/rest_api/src/lib.rs index a6ee948ae..b7fd3f581 100644 --- a/beacon_node/rest_api/src/lib.rs +++ b/beacon_node/rest_api/src/lib.rs @@ -128,7 +128,6 @@ pub fn start_server( (&Method::GET, "/node/version") => node::get_version(req), (&Method::GET, "/node/genesis_time") => node::get_genesis_time::(req), (&Method::GET, "/node/syncing") => helpers::implementation_pending_response(req), - (&Method::GET, "/node/chain_id") => helpers::implementation_pending_response(req), // Methods for Network (&Method::GET, "/network/enr") => network::get_enr::(req), diff --git a/docs/api_spec.yaml b/docs/api_spec.yaml index be8991956..901df3179 100644 --- a/docs/api_spec.yaml +++ b/docs/api_spec.yaml @@ -72,28 +72,6 @@ paths: 500: $ref: '#/components/responses/InternalError' - /node/chain_id: - get: - tags: - - Phase0 - summary: "Get fork information from running beacon node." - description: "Requests the beacon node to provide which fork version it is currently on." - responses: - 200: - description: Request successful - content: - application/json: - schema: - type: object - properties: - chain_id: - type: integer - format: uint64 - description: "Sometimes called the network id, this number discerns the active chain for the beacon node. Analogous to Eth1.0 JSON-RPC net_version." - 500: - $ref: '#/components/responses/InternalError' - - #TODO: Complete the /network/enr request /network/enr: get: