Skip to content

Commit

Permalink
Merge pull request #131 from cerc-io/telackey/type
Browse files Browse the repository at this point in the history
Include type in metadata output
  • Loading branch information
dboreham authored May 9, 2023
2 parents fb040d7 + 5dafc1f commit f144863
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion startup_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ else
fi
STOP_TIME=`date -u +"%Y-%m-%dT%H:%M:%SZ"`

if [ $rc -eq 0 ] && [ "$PRERUN_ONLY" == "true" ] && [ ! -z "$PRERUN_RANGE_START" ] && [ ! -z "$PRERUN_RANGE_STOP" ] && [ ! -z "$DATABASE_FILE_CSV_DIR" ] && [ "$DATABASE_FILE_MODE" == "csv" ]; then
if [ $rc -eq 0 ] && [ "$VDB_COMMAND" == "serve" ] && [ "$PRERUN_ONLY" == "true" ] && [ ! -z "$PRERUN_RANGE_START" ] && [ ! -z "$PRERUN_RANGE_STOP" ] && [ ! -z "$DATABASE_FILE_CSV_DIR" ] && [ "$DATABASE_FILE_MODE" == "csv" ]; then
cat >metadata.json <<EOF
{
"type": "statediff",
"range": { "start": $PRERUN_RANGE_START, "stop": $PRERUN_RANGE_STOP },
"nodeId": "$ETH_NODE_ID",
"genesisBlock": "$ETH_GENESIS_BLOCK",
Expand Down

0 comments on commit f144863

Please sign in to comment.