From 30895e5694e9e4c54b9982fed68e7ff8d2c075f1 Mon Sep 17 00:00:00 2001 From: "Luca G.F" Date: Tue, 17 Jan 2023 23:51:07 -0800 Subject: [PATCH] feat: update analysis launch to use generic pod id (#26) Signed-off-by: Luca Georges Francois Signed-off-by: Luca Georges Francois --- scripts/launch_analysis.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/launch_analysis.sh b/scripts/launch_analysis.sh index 62c5b85..afb0fd2 100644 --- a/scripts/launch_analysis.sh +++ b/scripts/launch_analysis.sh @@ -1,11 +1,10 @@ #!/bin/bash # This is a script to analyze MEV profits -# Input the pool Id of mev-inspect (can be found on your TILT interface) -# TODO: How to extract the mev-inspect pool id to copy the csv files? -mevInspectPoolId="mev-inspect-759f8dc6f7-2nnzl" +# Input the pool Id of mev-inspect (can also be found on your TILT interface) +mevInspectPoolId=$(kubectl get pods | sed -n -e '/^mev-inspect-/p' | sed '/^mev-inspect-workers/d' | awk '{print $1}') # Input the starting and ending blocks you want to run the profit analysis for blockFrom=$((34500000)) -blockTo=$((34800000)) +blockTo=$((34500100)) window=$((100)) reps=$(((${blockTo}-${blockFrom})/${window})) echo "${reps}"