Skip to content
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: 9 additions & 1 deletion scripts/tests/calibnet_other_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ go test -v ./f3-sidecar
echo "Verifying the non calibnet snapshot (./test-snapshots/chain4.car) is being served properly."
$FOREST_CLI_PATH chain read-obj -c bafy2bzacedjrqan2fwfvhfopi64yickki7miiksecglpeiavf7xueytnzevlu

echo "Test subcommand: state compute"
echo "Test subcommand: state compute at epoch 0"
cid=$($FOREST_CLI_PATH state compute --epoch 0)
# Expected state root CID, same reported as in Lotus. This should break only if the network is reset.
if [ "$cid" != "bafy2bzacecgqgzh3gxpariy3mzqb37y2vvxoaw5nwbrlzkhso6owus3zqckwe" ]; then
Expand Down Expand Up @@ -63,3 +63,11 @@ echo "Regression testing mempool select"
gem install http --user-install
$FOREST_CLI_PATH chain head --format json -n 1000 | scripts/mpool_select_killer.rb

echo "Test subcommand: state compute (batch)"
head_epoch=$($FOREST_CLI_PATH chain head --format json | jq ".[0].epoch")
if ! [[ "$head_epoch" =~ ^[0-9]+$ ]]; then
echo "Failed to parse numeric head epoch from 'chain head --format json': $head_epoch"
exit 1
fi
start_epoch=$(( head_epoch > 900 ? head_epoch - 900 : 0 ))
$FOREST_CLI_PATH state compute --epoch "$start_epoch" -n 10 -v
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how long does it take?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<10s

Loading