Skip to content

Commit

Permalink
script that watches balance of account
Browse files Browse the repository at this point in the history
  • Loading branch information
dsocolobsky committed Nov 29, 2024
1 parent 0e192cd commit 52da6ca
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,9 @@ clean-hive-logs: ## 🧹 Clean Hive logs

loc:
cargo run -p loc

flamegraph:
sudo -E CARGO_PROFILE_RELEASE_DEBUG=true cargo flamegraph --bin ethrex --features dev -- --network test_data/genesis-l2.json --http.port 1729

test-load:
ethrex_l2 test load --path ./test_data/private_keys.txt -i 1000 -v --value 10000000 --to 0xFCbaC0713ACf16708aB6BC977227041FA1BC618D
13 changes: 13 additions & 0 deletions flamegraph.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

output=$(cast balance 0xFCbaC0713ACf16708aB6BC977227041FA1BC618D --rpc-url=http://localhost:1729 2>&1)
end_val=$((172 * 1000 * 10000000))
echo "ini $output"
echo "end $end_val"
while [[ $output -le $end_val ]]; do
sleep 5
output=$(cast balance 0xFCbaC0713ACf16708aB6BC977227041FA1BC618D --rpc-url=http://localhost:1729 2>&1)
echo "out $output"
done

echo "fin $output"

0 comments on commit 52da6ca

Please sign in to comment.