Skip to content

Commit

Permalink
fix:substituted variable here
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Peterson <[email protected]>
  • Loading branch information
mattp-swirldslabs committed Jul 18, 2024
1 parent 827347e commit 2721b4b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/src/test/resources/producer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ trap cleanup SIGINT
# Response messages from the gRPC server are printed to stdout.
(
iter=$1
block_items=10
while true; do

# Generate 10 BlockItems per Block
for ((i=1; i<=10; i++))
for ((i=1; i<=$block_items; i++))
do

if [[ $i -eq 1 ]]; then
echo "{\"block_item\": {\"header\": {\"block_number\": $iter},\"value\": \"Payload[...]\"}}"
elif [[ $i -eq 10 ]]; then
elif [[ $i -eq $block_items ]]; then
echo "{\"block_item\": {\"state_proof\": {\"block\": $iter},\"value\": \"Payload[...]\"}}"
else
echo "{\"block_item\": {\"start_event\": {\"creator_id\": $i},\"value\": \"Payload[...]\"}}"
Expand Down

0 comments on commit 2721b4b

Please sign in to comment.