This website works better with JavaScript.
Home
Help
Sign In
zolfa
/
tendermint
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
221
Wiki
Activity
Browse Source
scripts/txs/random.sh
pull/314/head
Ethan Buchman
8 years ago
parent
81e6df0d57
commit
f763a9ef56
1 changed files
with
19 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+19
-0
scripts/txs/random.sh
+ 19
- 0
scripts/txs/random.sh
View File
@ -0,0 +1,19 @@
#! /bin/bash
set
-u
function
toHex
(
)
{
echo
-n
$1
|
hexdump -ve
'1/1 "%.2X"'
}
N
=
$1
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
)
\"
done
Write
Preview
Loading…
Cancel
Save