diff --git a/devel/stdin/start.sh b/devel/stdin/start.sh index 8755802..2cdffef 100755 --- a/devel/stdin/start.sh +++ b/devel/stdin/start.sh @@ -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() { diff --git a/devel/stdin/stdin.yaml b/devel/stdin/stdin.yaml index 4a6b965..dea4ac6 100644 --- a/devel/stdin/stdin.yaml +++ b/devel/stdin/stdin.yaml @@ -1,3 +1,8 @@ +# 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 @@ -5,4 +10,5 @@ start: - 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