Skip to content

Commit

Permalink
Change AC to point to fullnodes
Browse files Browse the repository at this point in the history
fix test

Closes: diem#1800
Approved by: phoenix-antigravity
  • Loading branch information
sherry-x authored and bors-libra committed Nov 20, 2019
1 parent 67e8a1c commit 3513ba7
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions client/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ use structopt::StructOpt;
)]
struct Args {
/// Admission Control port to connect to.
#[structopt(short = "p", long, default_value = "8000")]
#[structopt(short = "p", long, default_value = "8001")]
pub port: NonZeroU16,
/// Host address/name to connect to.
#[structopt(short = "a", long)]
Expand Down Expand Up @@ -160,8 +160,8 @@ mod tests {
#[test]
fn test_args_port() {
let args = Args::from_iter(&["test", "--host=h", "--validator-set-file=vsf"]);
assert_eq!(args.port.get(), 8000);
assert_eq!(format!("{}:{}", args.host, args.port.get()), "h:8000");
assert_eq!(args.port.get(), 8001);
assert_eq!(format!("{}:{}", args.host, args.port.get()), "h:8001");
let args = Args::from_iter(&[
"test",
"--port=65535",
Expand Down
2 changes: 1 addition & 1 deletion config/data/configs/single.node.config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ genesis_file_location = "genesis.blob"

[admission_control]
address = "0.0.0.0"
admission_control_service_port = 8000
admission_control_service_port = 8001
need_to_check_mempool_before_validation = false
max_concurrent_inbound_syncs = 100

Expand Down
2 changes: 1 addition & 1 deletion config/src/config/admission_control_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ impl Default for AdmissionControlConfig {
fn default() -> AdmissionControlConfig {
AdmissionControlConfig {
address: "0.0.0.0".to_string(),
admission_control_service_port: 8000,
admission_control_service_port: 8001,
need_to_check_mempool_before_validation: false,
max_concurrent_inbound_syncs: 100,
upstream_proxy_timeout: Duration::from_secs(1),
Expand Down
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ This directory contains [Docker](https://www.docker.com/) configuration and scri
4. To test the validator image locally, run `docker/validator/run.sh`
5. To test the faucet server image locally, run `docker/mint/run.sh`
6. Run the client as follows:
`cargo run -p client --bin client -- -a localhost -p 8000 -f localhost:8080 -s terraform/validator-sets/dev/consensus_peers.config.toml`
`cargo run -p client --bin client -- -a localhost -p 8001 -f localhost:8080 -s terraform/validator-sets/dev/consensus_peers.config.toml`
2 changes: 1 addition & 1 deletion docker/client/client.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ COPY --from=builder /libra/target/release/client /opt/libra/bin/libra_client
COPY scripts/cli/consensus_peers.config.toml /opt/libra/etc/consensus_peers.config.toml

ENTRYPOINT ["/opt/libra/bin/libra_client"]
CMD ["--host", "ac.testnet.libra.org", "--port", "8000", "-s", "/opt/libra/etc/consensus_peers.config.toml"]
CMD ["--host", "ac.testnet.libra.org", "--port", "8001", "-s", "/opt/libra/etc/consensus_peers.config.toml"]

ARG BUILD_DATE
ARG GIT_REV
Expand Down
2 changes: 1 addition & 1 deletion scripts/cli/start_cli_testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ source "$HOME/.cargo/env"

SCRIPT_PATH="$(dirname $0)"

RUN_PARAMS="--host ac.testnet.libra.org --port 8000 -s $SCRIPT_PATH/consensus_peers.config.toml"
RUN_PARAMS="--host ac.testnet.libra.org --port 8001 -s $SCRIPT_PATH/consensus_peers.config.toml"
RELEASE=""

while [[ ! -z "$1" ]]; do
Expand Down

0 comments on commit 3513ba7

Please sign in to comment.