Skip to content

Commit

Permalink
feat(rpc): allow defaulting to v08 from cli argument
Browse files Browse the repository at this point in the history
  • Loading branch information
t00ts committed Jan 13, 2025
1 parent 623f1af commit 689e6cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/pathfinder/src/bin/pathfinder/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,7 @@ impl Color {
#[derive(clap::ValueEnum, Debug, Clone, Copy, PartialEq)]
pub enum RootRpcVersion {
V07,
V08,
}

#[derive(Debug, Clone, Copy, PartialEq)]
Expand Down
1 change: 1 addition & 0 deletions crates/pathfinder/src/bin/pathfinder/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ Hint: This is usually caused by exceeding the file descriptor limit of your syst

let default_version = match config.rpc_root_version {
config::RootRpcVersion::V07 => pathfinder_rpc::RpcVersion::V07,
config::RootRpcVersion::V08 => pathfinder_rpc::RpcVersion::V08,
};

let rpc_server = pathfinder_rpc::RpcServer::new(config.rpc_address, context, default_version);
Expand Down

0 comments on commit 689e6cf

Please sign in to comment.