Skip to content

Commit

Permalink
add RootRpcVersion::V06
Browse files Browse the repository at this point in the history
  • Loading branch information
vbar committed Feb 4, 2025
1 parent 24c1ef3 commit c4c33a2
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 @@ -350,6 +350,7 @@ impl Color {

#[derive(clap::ValueEnum, Debug, Clone, Copy, PartialEq)]
pub enum RootRpcVersion {
V06,
V07,
V08,
}
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 @@ -256,6 +256,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::V06 => pathfinder_rpc::RpcVersion::V06,
config::RootRpcVersion::V07 => pathfinder_rpc::RpcVersion::V07,
config::RootRpcVersion::V08 => pathfinder_rpc::RpcVersion::V08,
};
Expand Down

0 comments on commit c4c33a2

Please sign in to comment.