Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions ci/run-sanity.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
set -ex

cd "$(dirname "$0")/.."
# shellcheck source=multinode-demo/common.sh
Expand Down Expand Up @@ -29,6 +29,8 @@ curl -X POST -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1, "m

wait $pid

$solana_ledger_tool create-snapshot --ledger config/ledger "$snapshot_slot" config/snapshot-ledger
$solana_ledger_tool create-snapshot --ledger config/ledger "$snapshot_slot" config/snapshot-ledger 2>&1 \
| tee -a "ledger-tool.log"
cp config/ledger/genesis.tar.bz2 config/snapshot-ledger
$solana_ledger_tool verify --ledger config/snapshot-ledger
$solana_ledger_tool verify --ledger config/snapshot-ledger 2>&1 | tee -a "ledger-tool.log"
! grep "failed to match hash" "ledger-tool.log"
3 changes: 2 additions & 1 deletion programs/vote/src/vote_state/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ impl VoteState {
return Err(VoteError::SlotsMismatch);
}
if slot_hashes[j].1 != vote.hash {
// UPDATE ci/run-sanity.sh AS WELL WHEN CHANGING THIS LOG FORMAT!
warn!(
"{} dropped vote {:?} failed to match hash {} {}",
"{} dropped vote {:?} failed to match hash: {} (vote's) != {} (local's)",
self.node_pubkey, vote, vote.hash, slot_hashes[j].1
);
inc_new_counter_info!("dropped-vote-hash", 1);
Expand Down