Skip to content

Commit

Permalink
fix(jstzd): change ports assigned to jstz node and jstzd server
Browse files Browse the repository at this point in the history
  • Loading branch information
huancheng-trili committed Jan 20, 2025
1 parent f32885d commit 4fb8290
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/jstz_cli/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::{

// hardcoding it here instead of importing from jstzd simply to avoid adding jstzd
// as a new depedency of jstz_cli just for this so that build time remains the same
const JSTZD_SERVER_BASE_URL: &str = "http://127.0.0.1:55555";
const JSTZD_SERVER_BASE_URL: &str = "http://127.0.0.1:54321";

pub fn jstz_home_dir() -> PathBuf {
if let Ok(value) = env::var("JSTZ_HOME") {
Expand Down
6 changes: 3 additions & 3 deletions crates/jstzd/src/config.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use octez::r#async::node_config::{OctezNodeHistoryMode, OctezNodeRunOptionsBuilder};
use octez::unused_port;
use rust_embed::Embed;

use crate::task::jstzd::JstzdConfig;
Expand All @@ -24,7 +23,8 @@ use serde::Deserialize;
use tezos_crypto_rs::hash::SmartRollupHash;
use tokio::io::AsyncReadExt;

const DEFAULT_JSTZD_SERVER_PORT: u16 = 55555;
const DEFAULT_JSTZD_SERVER_PORT: u16 = 54321;
const DEFAULT_JSTZ_NODE_PORT: u16 = 8933;
const ACTIVATOR_PK: &str = "edpkuSLWfVU1Vq7Jg9FucPyKmma6otcMHac9zG4oU1KMHSTBpJuGQ2";
pub const BOOTSTRAP_CONTRACT_NAMES: [(&str, &str); 2] = [
("exchanger", EXCHANGER_ADDRESS),
Expand Down Expand Up @@ -111,7 +111,7 @@ pub(crate) async fn build_config(
.build()
.unwrap();

let jstz_node_rpc_endpoint = Endpoint::localhost(unused_port());
let jstz_node_rpc_endpoint = Endpoint::localhost(DEFAULT_JSTZ_NODE_PORT);
let jstz_node_config = JstzNodeConfig::new(
&jstz_node_rpc_endpoint,
&octez_rollup_config.rpc_endpoint,
Expand Down

0 comments on commit 4fb8290

Please sign in to comment.