Skip to content

Commit

Permalink
docs: replace more references to lotus-shed with lotus in ChainIndexe…
Browse files Browse the repository at this point in the history
…r docs (#12708)

Ref: #12654
  • Loading branch information
rvagg authored and rjan90 committed Nov 26, 2024
1 parent d8f5595 commit ddc6c8e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions documentation/en/chain-indexer-overview-for-operators.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- [Backfill](#backfill)
- [Backfill Timing](#backfill-timing)
- [Backfill Disk Space Requirements](#backfill-disk-space-requirements)
- [`lotus index validate-backfill` CLI tool](#lotus-shed-chainindex-validate-backfill-cli-tool)
- [`lotus index validate-backfill` CLI tool](#lotus-index-validate-backfill-cli-tool)
- [Usage](#usage)
- [Regular Checks](#regular-checks)
- [Downgrade Steps](#downgrade-steps)
Expand Down Expand Up @@ -233,7 +233,7 @@ The command validates the chain index entries for each epoch in the specified ra

You can learn about how to use the tool with `lotus index validate-backfill -h`.

Note: If you are using a non-standard Lotus repo directory then you can run the command with `lotus-shed -repo /path/to/lotus/repo chainindex validate-backfill ...`, or by setting the `LOTUS_REPO` environment variable.
Note: If you are using a non-standard Lotus repo directory then you can run the command with `lotus -repo /path/to/lotus/repo chainindex validate-backfill ...`, or by setting the `LOTUS_REPO` environment variable.

## Regular Checks

Expand All @@ -252,8 +252,8 @@ current_date=$(date '+%Y-%m-%d %H:%M:%S')
# not expect regular errors in the index.
BACKFILL_OPTION=false

# Path to the lotus-shed binary
LOTUS_SHED_PATH="/path/to/lotus-shed"
# Path to the lotus binary
LOTUS_BIN_PATH="/path/to/lotus"

# Get the current chain head epoch number
start_epoch=$(lotus chain head --height)
Expand All @@ -267,7 +267,7 @@ epochs_to_validate=3000
end_epoch=$((start_epoch - epochs_to_validate + 1))

# Run the Lotus chainindex validate-backfill command
validation_output=$("$LOTUS_SHED_PATH" chainindex validate-backfill --from="$start_epoch" --to="$end_epoch" --backfill="$BACKFILL_OPTION" --quiet 2>&1)
validation_output=$("$LOTUS_BIN_PATH" chainindex validate-backfill --from="$start_epoch" --to="$end_epoch" --backfill="$BACKFILL_OPTION" --quiet 2>&1)

# Check the exit status of the command to determine if errors occurred
if [ $? -ne 0 ]; then
Expand Down

0 comments on commit ddc6c8e

Please sign in to comment.