Last active
September 11, 2020 09:47
-
-
Save delta1/8e6fa5c2855054eda5fc2ec44266780f to your computer and use it in GitHub Desktop.
Tari stress test log script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
# you need RipGrep installed `brew install ripgrep` | |
# run this script in your Tari base node log directory (normall ~/.tari/log) - you might need to make it executable first `chmod +x script.zsh` | |
# make sure to remove log entries outside of the date/times you're searching for... | |
# -------------------------------- Receiver -------------------------------- | |
echo Transaction Replies queued with Message | |
rg -iu "^.*?(?:\b|_)Transaction Reply(?:\b|_).*?(?:\b|_)queued with Message(?:\b|_).*?$" ./base_layer*.log | wc -l | |
# -------------------------------- Receiver -------------------------------- | |
echo Finalized Transaction received | |
rg -iu "^.*?(?:\b|_)Finalized Transaction with(?:\b|_).*?(?:\b|_)received from(?:\b|_).*?$" ./base_layer*.log | wc -l | |
# -------------------------------- Sender & Receiver -------------------------------- | |
echo Completed Transaction detected as Broadcast to Base Node Mempool in UnconfirmedPool | |
rg -iu "^.*?(?:\b|_)Completed Transaction(?:\b|_).*?(?:\b|_)detected as Broadcast to Base Node Mempool in UnconfirmedPool(?:\b|_).*?$" ./base_layer*.log | wc -l | |
# -------------------------------- Sender & Receiver -------------------------------- | |
echo Transaction detected as mined on the Base Layer | |
rg -iu "^.*?(?:\b|_)Transaction(?:\b|_).*?(?:\b|_)detected as mined on the Base Layer(?:\b|_).*?$" ./base_layer*.log | wc -l |
Author
delta1
commented
Sep 11, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment