Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

Commit

Permalink
Merge branch 'spacenet' of github.com:consensus-shipyard/lotus into s…
Browse files Browse the repository at this point in the history
…pacenet
  • Loading branch information
adlrocha committed Apr 18, 2023
2 parents 544f969 + 37e4043 commit abcde98
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 abcde98

Please sign in to comment.