Skip to content

Commit 9a5d31d

Browse files
committed
add script to send burst proofs
1 parent b34fefc commit 9a5d31d

3 files changed

Lines changed: 32 additions & 1 deletion

File tree

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -511,7 +511,11 @@ batcher_send_burst_groth16: batcher/target/release/aligned
511511
@./batcher/aligned/send_burst_tasks.sh $(BURST_SIZE) $(START_COUNTER)
512512

513513
batcher_send_proof_with_random_address:
514-
@./batcher/aligned/send_proof_with_random_address.sh
514+
@cd batcher/aligned && ./send_proof_with_random_address.sh
515+
516+
517+
batcher_send_burst_with_random_address:
518+
@cd batcher/aligned && ./send_burst_with_random_address.sh
515519

516520
__TASK_SENDER__:
517521
BURST_TIME_SECS ?= 3
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/bash
2+
3+
# This script send periodically a burst of proof with a specific amount of repetitions
4+
# the proofs always have a random address
5+
# Params:
6+
# PROOF_TYPE = sp1|groth16|plonk|risc0 (default sp1)
7+
# RPC_URL (default localhost:8545)
8+
# NETWORK devnet|holesky-stage|holesky
9+
# REPETITIONS (default 1)
10+
# BURST_DELAY in secs (default 10)
11+
12+
if [ -z $BURST_DELAY ]; then
13+
echo "Using default burst delay 10"
14+
BURST_DELAY=10
15+
fi
16+
17+
while true
18+
do
19+
. ./send_proof_with_random_address.sh &
20+
sleep $BURST_DELAY
21+
done

batcher/aligned/send_proof_with_random_address.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/bash
22

3+
# Params:
4+
# PROOF_TYPE = sp1|groth16|plonk|risc0 (default sp1)
5+
# RPC_URL (default localhost:8545)
6+
# NETWORK devnet|holesky-stage|holesky
7+
# REPETITIONS (default 1)
8+
39
if [ -z "$NETWORK" ]; then
410
echo "NETWORK is not set. Setting it to devnet"
511
NETWORK="devnet"

0 commit comments

Comments
 (0)