From 65b5bddf4e19388f8447b4bb2d3ee9043c8ffe10 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Sun, 24 May 2020 09:00:21 -0700 Subject: [PATCH] v1.0: Test ledger-tool commands in run-sanity.sh (bp #10211) (#10213) automerge --- ci/run-sanity.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ci/run-sanity.sh b/ci/run-sanity.sh index f83b8d6419..ed9218c643 100755 --- a/ci/run-sanity.sh +++ b/ci/run-sanity.sh @@ -2,8 +2,10 @@ set -e cd "$(dirname "$0")/.." +# shellcheck source=multinode-demo/common.sh +source multinode-demo/common.sh -rm -f config/run/init-completed +rm -rf config/run/init-completed config/ledger config/snapshot-ledger timeout 15 ./run.sh & pid=$! @@ -20,3 +22,8 @@ done curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1, "method":"validatorExit"}' http://localhost:8899 wait $pid + +$solana_ledger_tool create-snapshot --ledger config/ledger 1 config/snapshot-ledger +cp config/ledger/genesis.tar.bz2 config/snapshot-ledger +tar -C config/snapshot-ledger -xvf config/snapshot-ledger/genesis.tar.bz2 +$solana_ledger_tool verify --ledger config/snapshot-ledger