Skip to content

Commit

Permalink
Use halt-at-slot to specify getting bank-hash for slot 0 (solana-labs…
Browse files Browse the repository at this point in the history
…#29873)

The bootstrap node creates the bootstrap snapshot at slot 0 so we do
indeed want the bank hash at slot 0. However, stricter error checking in
solana-ledger-tool made it such that the bank-hash command would error.
  • Loading branch information
steviez authored Jan 25, 2023
1 parent ac65343 commit a165e70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/remote/remote-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ EOF
solana-ledger-tool -l config/bootstrap-validator shred-version --max-genesis-archive-unpacked-size 1073741824 | tee config/shred-version

if [[ -n "$maybeWaitForSupermajority" ]]; then
bankHash=$(solana-ledger-tool -l config/bootstrap-validator bank-hash)
bankHash=$(solana-ledger-tool -l config/bootstrap-validator bank-hash --halt-at-slot 0)
extraNodeArgs="$extraNodeArgs --expected-bank-hash $bankHash"
echo "$bankHash" > config/bank-hash
fi
Expand Down

0 comments on commit a165e70

Please sign in to comment.