Skip to content

Commit

Permalink
scripts/txs: add 0x and randomness
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed Jul 17, 2017
1 parent 086544e commit d49a516
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/txs/random.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ PORT=$2

for i in `seq 1 $N`; do
# store key value pair
KEY="abcd$i"
VALUE="dcba$i"
echo "$KEY:$VALUE"
curl 127.0.0.1:$PORT/broadcast_tx_sync?tx=\"$(toHex $KEY=$VALUE)\"
KEY=$(head -c 10 /dev/urandom)
VALUE="$i"
echo $(toHex $KEY=$VALUE)
curl 127.0.0.1:$PORT/broadcast_tx_sync?tx=0x$(toHex $KEY=$VALUE)
done


0 comments on commit d49a516

Please sign in to comment.