Skip to content

Commit

Permalink
add new endpoint version
Browse files Browse the repository at this point in the history
  • Loading branch information
eserilev committed Aug 16, 2023
1 parent ae690fb commit 1802e45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion beacon_node/http_api/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,8 @@ pub fn serve<T: BeaconChainTypes>(

let eth_v1 = single_version(V1);
let eth_v2 = single_version(V2);

let eth_v3 = single_version(V3);

// Create a `warp` filter that provides access to the network globals.
let inner_network_globals = ctx.network_globals.clone();
let network_globals = warp::any()
Expand Down
2 changes: 2 additions & 0 deletions beacon_node/http_api/src/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ use warp::reply::{self, Reply, Response};

pub const V1: EndpointVersion = EndpointVersion(1);
pub const V2: EndpointVersion = EndpointVersion(2);
pub const V3: EndpointVersion = EndpointVersion(3);


pub fn fork_versioned_response<T: Serialize>(
endpoint_version: EndpointVersion,
Expand Down

0 comments on commit 1802e45

Please sign in to comment.