Skip to content

Commit

Permalink
add example scripts in /examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sslivkoff committed Jun 6, 2023
1 parent 09b75f2 commit 651044e
Show file tree
Hide file tree
Showing 2 changed files with 89 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/equality_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

export NODE1=ip.address.1:8545
export NODE2=ip.address.2:8545

flood all node1=$NODE1 node2=$NODE2 --equality

82 changes: 82 additions & 0 deletions examples/report.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/bin/bash

export TEST_DATA_DIR=/path/to/some/output/dir
export [email protected]:localhost:8545
export [email protected]:localhost:8545

#
# # run tests
#

flood eth_call \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_call \
-r 1024 2048 4096 8192 16384

flood eth_getBalance \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_getBalance \
-d 1 \
-r 1024 2048 4096 8192 16384

flood eth_getBlockByNumber \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_getBlockByNumber \
-r 1024 2048 4096 8192 16384

flood eth_getCode \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_getCode \
-r 1024 2048 4096 8192 16384

flood eth_getLogs \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_getLogs \
-r 64 128 256 512 1024

flood eth_getStorageAt \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_getStorageAt \
-r 1024 2048 4096 8192 16384

flood eth_getTransactionByHash \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_getTransactionByHash \
-r 1024 2048 4096 8192 16384

flood eth_getTransactionCount \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_getTransactionCount \
-r 2048 4096 8192 16384 32768

flood eth_getTransactionReceipt \
node1=$NODE1 \
node2=$NODE2 \
--output $TEST_DATA_DIR/eth_getTransactionReceipt \
-r 1024 2048 4096 8192 16384

#
# # generate report
#

cd $TEST_DATA_DIR

flood report \
$TEST_DATA_DIR/eth_call \
$TEST_DATA_DIR/eth_getBalance \
$TEST_DATA_DIR/eth_getBlockByNumber \
$TEST_DATA_DIR/eth_getCode \
$TEST_DATA_DIR/eth_getLogs \
$TEST_DATA_DIR/eth_getStorageAt \
$TEST_DATA_DIR/eth_getTransactionByHash \
$TEST_DATA_DIR/eth_getTransactionCount \
$TEST_DATA_DIR/eth_getTransactionReceipt

0 comments on commit 651044e

Please sign in to comment.