Skip to content

Commit

Permalink
rename bind flag in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Meshiest committed Mar 22, 2024
1 parent 2cc4244 commit e5a263f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/snot-agent/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pub struct Cli {
/// Path to the directory containing the stored data and configuration
pub path: PathBuf,

#[clap(long = "bind_addr", default_value_t = IpAddr::V4(Ipv4Addr::UNSPECIFIED))]
#[clap(long = "bind", default_value_t = IpAddr::V4(Ipv4Addr::UNSPECIFIED))]
pub bind_addr: IpAddr,
/// Specify the IP address and port for the node server
#[clap(long = "node", default_value_t = 4130)]
Expand Down
2 changes: 1 addition & 1 deletion scripts/agent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ DATA_PATH="$(pwd)/snot-data/$INDEX"
echo "Starting ${DATA_PATH}"
cargo run --release -p snot-agent -- \
--path "$DATA_PATH" \
--bind_addr "0.0.0.0" \
--bind "0.0.0.0" \
--bft "500$INDEX" \
--rest "303$INDEX" \
--node "413$INDEX"
3 changes: 2 additions & 1 deletion scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ STORAGE="${LEDGER}_${MODE}_${INDEX}"
rm -rf $STORAGE
cp -r $LEDGER $STORAGE

echo "Starting $MODE $INDEX" "${TEST_PATH}/${MODE}_${INDEX}.log"
echo "Starting $MODE $INDEX" "${TEST_PATH}/${MODE}_${INDEX}.log"
$BINARY --log "${TEST_PATH}/${MODE}_${INDEX}.log" \
run --type $MODE \
--bind "0.0.0.0" \
--bft "500$INDEX" \
--rest "303$INDEX" \
--node "413$INDEX" \
Expand Down

0 comments on commit e5a263f

Please sign in to comment.