Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: replace more references to lotus-shed with lotus in ChainIndexer docs #12708

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading