Net script fix for expected shred version (#280)
Fix for --expected-shred-version when maybeWaitForSupermajority is on Co-authored-by: Lijun Wang <lijun@anza.xyz>
This commit is contained in:
parent
6441209682
commit
69b40a4d75
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue