You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# check that POH_CHECK_PREVIOUS_BLOCKHASH has a value, and is a string without spaces and is base58
52
-
if [[ -z"$POH_CHECK_PREVIOUS_BLOCKHASH"||!"$POH_CHECK_PREVIOUS_BLOCKHASH"=~ ^[1-9A-HJ-NP-Za-km-z]+$ ]];then
53
-
echo"Failed to find the previous blockhash for epoch $POH_CHECK_EPOCH 's first slot $POH_CHECK_EPOCH_FIRST_SLOT"
54
-
exit 1
55
-
fi
56
-
57
-
echo"Epoch $POH_CHECK_EPOCH 's first slot is $POH_CHECK_EPOCH_FIRST_SLOT; its parent slot is $POH_CHECK_PREVIOUS_SLOT which has blockhash $POH_CHECK_PREVIOUS_BLOCKHASH"
58
-
59
-
echo"Use that as the --prevhash argument to poh-check-car like this:"
# check that POH_NEXT_EPOCH_PREVIOUS_BLOCKHASH has a value, and is a string without spaces and is base58
87
-
if [[ -z"$POH_NEXT_EPOCH_PREVIOUS_BLOCKHASH"||!"$POH_NEXT_EPOCH_PREVIOUS_BLOCKHASH"=~ ^[1-9A-HJ-NP-Za-km-z]+$ ]];then
88
-
echo"Failed to find the previous blockhash for epoch $POH_NEXT_EPOCH 's first slot $POH_NEXT_EPOCH_FIRST_SLOT"
89
-
exit 1
90
-
fi
91
-
92
-
echo"Epoch $POH_CHECK_EPOCH 's last slot is $POH_NEXT_EPOCH_PREVIOUS_SLOT with blockhash $POH_NEXT_EPOCH_PREVIOUS_BLOCKHASH"
93
-
94
-
echo"Use --assert-last-slot=$POH_NEXT_EPOCH_PREVIOUS_SLOT --assert-last-hash=$POH_NEXT_EPOCH_PREVIOUS_BLOCKHASH to check the last slot and blockhash of the epoch"
95
-
96
-
echo"If you don't want to see the progress bar, use --no-progress"
0 commit comments