Verify ledger before starting up the fullnode

This commit is contained in:
Michael Vines 2019-01-18 10:26:07 -08:00 committed by Grimes
parent 922ffdfc28
commit da5cb0b012
2 changed files with 2 additions and 0 deletions

View File

@ -49,6 +49,7 @@ fi
tune_system
trap 'kill "$pid" && wait "$pid"' INT TERM
$solana_ledger_tool --ledger "$SOLANA_CONFIG_DIR"/bootstrap-leader-ledger verify
$program \
$maybe_no_leader_rotation \
--identity "$SOLANA_CONFIG_DIR"/bootstrap-leader.json \

View File

@ -192,6 +192,7 @@ $rsync -vPr "$rsync_leader_url"/config/ledger/ "$ledger_config_dir"
echo "Unable to retrieve ledger from $rsync_leader_url"
exit 1
}
$solana_ledger_tool --ledger "$ledger_config_dir" verify
$solana_wallet --keypair "$fullnode_id_path" address