Closed kiltsonfire closed 1 month ago
#!/bin/bash
# Function to display usage
usage() {
echo "Usage: $0 -f <log_file>"
exit 1
}
# Parse the command line arguments
while getopts ":f:" opt; do
case ${opt} in
f )
log_file=$OPTARG
;;
\? )
usage
;;
esac
done
# Check if log_file is set
if [ -z "$log_file" ]; then
usage
fi
# Initialize variables
inbound_total=0
outbound_total=0
# Process only the lines containing "Appended"
grep "Appended" "$log_file" | sed 's/\x1b\[[0-9;]*m//g' | while IFS= read -r line; do
# Extract and sum up the inbound etxs
inbound=$(echo "$line" | grep -oP 'etxs inbound=\K\d+')
if [ -n "$inbound" ]; then
inbound_total=$((inbound_total + inbound))
fi
# Extract and sum up the outbound etxs
outbound=$(echo "$line" | grep -oP 'etxs emitted=\K\d+')
if [ -n "$outbound" ]; then
outbound_total=$((outbound_total + outbound))
fi
echo "Total Inbound ETXs: $inbound_total"
echo "Total Outbound ETXs: $outbound_total"
done
System information
Go-quai version:
go-quai 449166b519ba104e867353dd847b2ee676307791
Expected behaviour
We should have inbound and outbound ETXs be approximately equal.
Actual behaviour
They are not anywhere close to equivalent.
Note that 1-0 has a known issue with genallocs/transactor. Also note that in aggregate we appear to be off by a factor of two. This could be very simply
Steps to reproduce the behaviour
1) 30 node environment 2) 27 slices 3) all mining 4) running quai transactors on all nodes