Skip to content

Commit

Permalink
fix env in scripts (filecoin-project#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnkolegov committed Apr 18, 2023
1 parent 7cb2675 commit 37e4043
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions scripts/mir/4-node-net.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/usr/bin/env bash

n=`date '+%Y-%m-%dT%T'`
export MIR_INTERCEPTOR_OUTPUT="mir-event-logs/run-$n"

tmux new-session -d -s "mir" \; \
new-window -t "mir" \; \
split-window -t "mir:0" -v \; \
Expand Down
7 changes: 4 additions & 3 deletions scripts/mir/validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,10 @@ cp ./scripts/mir/mir-config/node$INDEX/* $LOTUS_PATH
mkdir $LOTUS_PATH/mir.db

# Set interceptor output
n=$(cat mir-event-logs/counter)
export MIR_INTERCEPTOR_OUTPUT="mir-event-logs/run-${n}"
echo $((n + 1)) > mir-event-logs/counter
if [[ -z "${MIR_INTERCEPTOR_OUTPUT}" ]]; then
n=`date '+%Y-%m-%dT%T'`
MIR_INTERCEPTOR_OUTPUT="mir-event-logs/run/$INDEX/$n"
fi

# Run validator
./eudico mir validator run --nosync --max-block-delay="1s"

0 comments on commit 37e4043

Please sign in to comment.