Skip to content

Commit

Permalink
add era dir to make_states
Browse files Browse the repository at this point in the history
  • Loading branch information
arnetheduck committed Aug 12, 2024
1 parent 19451ca commit 8723a79
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/make_states.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ set -e

trap "exit" INT

if [ -z "$3" ]
if [ -z "$4" ]
then
echo "Syntax: make_states.sh datadir era1dir statsdir [startdir]"
echo "Syntax: make_states.sh datadir era1dir eradir statsdir [startdir]"
exit 1;
fi

Expand All @@ -20,15 +20,16 @@ REV=$(git rev-parse --short=8 HEAD)
DATA_DIR="$1/${DATE}-${REV}"

mkdir -p "$DATA_DIR"
[ "$4" ] && cp -ar "$4"/* "$DATA_DIR"
[ "$5" ] && cp -ar "$5"/* "$DATA_DIR"

while true;
do
"$SCRIPT_DIR/../build/nimbus" import \
--data-dir:"${DATA_DIR}" \
--era1-dir:"$2" \
--era-dir:"$3" \
--debug-csv-stats:"$3/stats-${DATE}-${REV}.csv" \
--max-blocks:100000
--max-blocks:1000000
cp -ar "$1/${DATE}-${REV}" "$1/${DATE}-${REV}"-$(printf "%04d" $counter)
counter=$((counter+1))
done

0 comments on commit 8723a79

Please sign in to comment.