Skip to content

Commit

Permalink
Net script fix for expected shred version (#280)
Browse files Browse the repository at this point in the history
Fix for --expected-shred-version when maybeWaitForSupermajority is on

Co-authored-by: Lijun Wang <[email protected]>
  • Loading branch information
lijunwangs and Lijun Wang authored Mar 18, 2024
1 parent 6441209 commit 69b40a4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions multinode-demo/bootstrap-validator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ while [[ -n $1 ]]; do
elif [[ $1 == --expected-bank-hash ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --expected-shred-version ]]; then
args+=("$1" "$2")
shift 2
elif [[ $1 == --accounts ]]; then
args+=("$1" "$2")
shift 2
Expand Down
3 changes: 2 additions & 1 deletion net/remote/remote-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ EOF

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

0 comments on commit 69b40a4

Please sign in to comment.