make a copy of the ledger for sanity check
we can't verify a live ledger, unfortunately, fixes #985
This commit is contained in:
parent
39c3280860
commit
af20a43b77
|
@ -20,7 +20,10 @@ echo "--- $NET_URL: verify ledger"
|
|||
if [[ -z $NO_LEDGER_VERIFY ]]; then
|
||||
if [[ -d /var/snap/solana/current/config/ledger ]]; then
|
||||
# Note: here we assume this script is actually running on the leader node...
|
||||
sudo solana.ledger-tool --ledger /var/snap/solana/current/config/ledger verify
|
||||
LEDGER=/tmp/ledger-${BUILDKITE_BUILD_ID:-$$}
|
||||
cp -r /var/snap/solana/current/config/ledger "$LEDGER"
|
||||
solana.ledger-tool --ledger "$LEDGER" verify
|
||||
rm -rf "$LEDGER"
|
||||
else
|
||||
echo "^^^ +++"
|
||||
echo "Ledger verify skipped"
|
||||
|
|
Loading…
Reference in New Issue