Skip to content

Commit

Permalink
Updated stdin config
Browse files Browse the repository at this point in the history
  • Loading branch information
maoueh committed Jan 9, 2024
1 parent b03c6d4 commit e60c636
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
8 changes: 4 additions & 4 deletions devel/stdin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ main() {
mkdir -p "$chain_data"
fi

if ! command -v dummy-blockchain >/dev/null 2>&1; then
usage_error "The 'dummy-blockchain' executable must be found within your PATH, install it from source of 'https://github.com/streamingfast/dummy-blockchain'"
fi
# if ! command -v dummy-blockchain >/dev/null 2>&1; then
# usage_error "The 'dummy-blockchain' executable must be found within your PATH, install it from source of 'https://github.com/streamingfast/dummy-blockchain'"
# fi

exec dummy-blockchain --firehose-enabled --block-rate 60 start --store-dir "$chain_data" | $fireacme -c $(basename $ROOT).yaml start "$@"
exec go run github.com/streamingfast/dummy-blockchain@v1.2.0 start --tracer=firehose --block-rate=60 --store-dir "$chain_data" | $fireacme -c $(basename $ROOT).yaml start "$@"
}

usage_error() {
Expand Down
8 changes: 7 additions & 1 deletion devel/stdin/stdin.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Invoked using:
#
# dummy-blockchain start --tracer=firehose --store-dir=./devel/stdin/firehose-data/reader-node --block-rate=60 | ./devel/stdin/start.sh
#
# The `./devel/stdin/start.sh` does the above invocation and pipes the output to the `stdin` process.
start:
args:
- firehose
- merger
- reader-node-stdin
- relayer
flags:
# Invoked like `dummy-blockchain --firehose-enabled --block-rate=6 | ./devel/stdin/start.sh`
# The dummy block chain genesis block's height is 1
common-first-streamable-block: 1

0 comments on commit e60c636

Please sign in to comment.