Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add address data for 2PC, 3PC, and 4PC #66

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
2 changes: 2 additions & 0 deletions mpc-algebra/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 mpc-algebra/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
Loading