github.com/vipernet-xyz/tendermint-core@v0.32.0/test/persist/txs.sh (about)

     1  #! /bin/bash
     2  set -u
     3  
     4  # wait till node is up, send txs
     5  ADDR=$1 #="127.0.0.1:26657"
     6  curl -s $ADDR/status > /dev/null
     7  ERR=$?
     8  while [ "$ERR" != 0 ]; do
     9  	sleep 1	
    10  	curl -s $ADDR/status > /dev/null
    11  	ERR=$?
    12  done
    13  
    14  # send a bunch of txs over a few blocks
    15  echo "Node is up, sending txs"
    16  for i in $(seq 1 5); do
    17  	for _ in $(seq 1 100); do
    18  		tx=$(head -c 8 /dev/urandom | hexdump -ve '1/1 "%.2X"')
    19  		curl -s "$ADDR/broadcast_tx_async?tx=0x$tx" &> /dev/null
    20  	done
    21  	echo "sent 100"
    22  	sleep 1
    23  done