Skip to content

Commit

Permalink
Add option to skip ledger verification
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Aug 18, 2018
1 parent c9508e8 commit c2ddd05
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions ci/testnet-sanity.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,15 @@ if [[ -z $EXPECTED_NODE_COUNT ]]; then
fi

echo "--- $NET_URL: verify ledger"
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
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
else
echo "^^^ +++ Ledger verify skipped"
fi
else
echo "^^^ +++"
echo "Ledger verify skipped"
echo "^^^ +++ Ledger verify skipped (NO_LEDGER_VERIFY defined)"
fi

echo "--- $NET_URL: wallet sanity"
Expand Down

0 comments on commit c2ddd05

Please sign in to comment.