Skip to content

Commit

Permalink
fix: Add address data for 2PC, 3PC, and 4PC
Browse files Browse the repository at this point in the history
  • Loading branch information
sheagrief committed Oct 24, 2024
1 parent ad4f79f commit ee80802
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 18 deletions.
2 changes: 2 additions & 0 deletions data/2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
127.0.0.1:8000
127.0.0.1:8001
File renamed without changes.
4 changes: 4 additions & 0 deletions data/4
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
127.0.0.1:8000
127.0.0.1:8001
127.0.0.1:8002
127.0.0.1:8003
4 changes: 2 additions & 2 deletions mpc-algebra/test.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ for i in $(seq 0 2)
do
if [ $i == 0 ]
then
RUST_BACKTRACE=1 $BIN $i ./data/address &
RUST_BACKTRACE=1 $BIN $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN $i ./data/address > /dev/null &
$BIN $i ./data/3 > /dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand Down
4 changes: 2 additions & 2 deletions run_groth16.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ for i in $(seq 0 2)
do
if [ $i == 0 ]
then
RUST_BACKTRACE=1 $BIN $i ./data/address &
RUST_BACKTRACE=1 $BIN $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN $i ./data/address > /dev/null &
$BIN $i ./data/3 > /dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand Down
4 changes: 2 additions & 2 deletions run_marlin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ for i in $(seq 0 2)
do
if [ $i == 0 ]
then
RUST_BACKTRACE=1 $BIN $i ./data/address &
RUST_BACKTRACE=1 $BIN $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN $i ./data/address > /dev/null &
$BIN $i ./data/3 > /dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand Down
4 changes: 2 additions & 2 deletions run_online.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ for i in $(seq 0 2)
do
if [ $i == 0 ]
then
RUST_BACKTRACE=1 $BIN marlin ./inputs/inputs.json $i ./data/address &
RUST_BACKTRACE=1 $BIN marlin ./inputs/inputs.json $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN marlin ./inputs/inputs.json $i ./data/address > /dev/null &
$BIN marlin ./inputs/inputs.json $i ./data/3 > /dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand Down
20 changes: 10 additions & 10 deletions run_werewolf.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ init)
for i in $(seq 0 $((players - 1))); do
mkdir -p ./werewolf_game/$i
if [ $i == 0 ]; then
RUST_BACKTRACE=1 $BIN preprocessing $i ./data/address &
RUST_BACKTRACE=1 $BIN preprocessing $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN preprocessing $i ./data/address >/dev/null &
$BIN preprocessing $i ./data/3 >/dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand All @@ -41,11 +41,11 @@ night)
fi
for i in $(seq 0 $((players - 1))); do
if [ $i == 0 ]; then
RUST_BACKTRACE=1 $BIN night --target 1 $i ./data/address &
RUST_BACKTRACE=1 $BIN night --target 1 $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN night $i ./data/address >/dev/null &
$BIN night $i ./data/3 >/dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand All @@ -58,11 +58,11 @@ night)
role_assignment)
for i in $(seq 0 $((players - 1))); do
if [ $i == 0 ]; then
RUST_BACKTRACE=1 $BIN role_assignment $i ./data/address &
RUST_BACKTRACE=1 $BIN role_assignment $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN role_assignment $i ./data/address >/dev/null &
$BIN role_assignment $i ./data/3 >/dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand All @@ -75,11 +75,11 @@ role_assignment)
vote)
for i in $(seq 0 $((players - 1))); do
if [ $i == 0 ]; then
RUST_BACKTRACE=1 $BIN vote $i ./data/address &
RUST_BACKTRACE=1 $BIN vote $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN vote $i ./data/address >/dev/null &
$BIN vote $i ./data/3 >/dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand All @@ -92,11 +92,11 @@ vote)
judgment)
for i in $(seq 0 $((players - 1))); do
if [ $i == 0 ]; then
RUST_BACKTRACE=1 $BIN judgment $i ./data/address &
RUST_BACKTRACE=1 $BIN judgment $i ./data/3 &
pid=$!
PROCS[$i]=$pid
else
$BIN judgment $i ./data/address >/dev/null &
$BIN judgment $i ./data/3 >/dev/null &
pid=$!
PROCS[$i]=$pid
fi
Expand Down

0 comments on commit ee80802

Please sign in to comment.