Skip to content

Commit b34fefc

Browse files
committed
Add repetitions to script
1 parent 08dc6a2 commit b34fefc

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

batcher/aligned/send_proof_with_random_address.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,13 @@ if [ -z $PROOF_TYPE ]; then
1515
PROOF_TYPE="sp1" #sp1|groth16|plonk|risc0
1616
fi
1717

18-
echo "Sending $PROOF_TYPE proof to the batcher"
18+
if [ -z $REPETITIONS ]; then
19+
echo "REPETITIONS not provided, using 1 as default"
20+
REPETITIONS=1
21+
fi
22+
23+
echo "Sending $REPETITIONS $PROOF_TYPE proof/s to the batcher"
24+
echo "Batcher in $NETWORK and endpoint at $RPC_URL"
1925

2026
if [[ $PROOF_TYPE == "sp1" ]]; then
2127
cd batcher/aligned/
@@ -24,6 +30,7 @@ if [[ $PROOF_TYPE == "sp1" ]]; then
2430
--proof ../../scripts/test_files/sp1/sp1_fibonacci_4_1_3.proof \
2531
--vm_program ../../scripts/test_files/sp1/sp1_fibonacci_4_1_3.elf \
2632
--random_address \
33+
--repetitions $REPETITIONS \
2734
--rpc_url $RPC_URL \
2835
--network $NETWORK
2936

@@ -35,6 +42,7 @@ elif [[ $PROOF_TYPE == "groth16" ]]; then
3542
--public_input ../../scripts/test_files/gnark_groth16_bn254_script/groth16.pub \
3643
--vk ../../scripts/test_files/gnark_groth16_bn254_script/groth16.vk \
3744
--random_address \
45+
--repetitions $REPETITIONS \
3846
--rpc_url $RPC_URL \
3947
--network $NETWORK
4048

@@ -46,6 +54,7 @@ elif [[ $PROOF_TYPE == "plonk" ]]; then
4654
--public_input ../../scripts/test_files/gnark_plonk_bn254_script/plonk_pub_input.pub \
4755
--vk ../../scripts/test_files/gnark_plonk_bn254_script/plonk.vk \
4856
--random_address \
57+
--repetitions $REPETITIONS \
4958
--rpc_url $RPC_URL \
5059
--network $NETWORK
5160

@@ -56,6 +65,7 @@ elif [[ $PROOF_TYPE == "risc0" ]]; then
5665
--proof ../../scripts/test_files/risc_zero/no_public_inputs/risc_zero_no_pub_input_2_0.proof \
5766
--vm_program ../../scripts/test_files/risc_zero/no_public_inputs/no_pub_input_id_2_0.bin \
5867
--random_address \
68+
--repetitions $REPETITIONS \
5969
--rpc_url $RPC_URL \
6070
--network $NETWORK
6171

0 commit comments

Comments
 (0)