#!/bin/bash here=$(dirname "$0") # shellcheck source=multinode-demo/common.sh source "$here"/common.sh usage () { exitcode=0 if [[ -n "$1" ]]; then exitcode=1 echo "Error: $*" fi cat < "$SOLANA_CONFIG_DIR"/ledger.log echo "Creating $SOLANA_CONFIG_DIR/leader.json" $solana_fullnode_config --keypair="$id_path" "${leader_address_args[@]}" > "$SOLANA_CONFIG_DIR"/leader.json fi if $node_type_validator; then echo "Creating $SOLANA_CONFIG_DIR/validator.json" $solana_fullnode_config --keypair="$id_path" "${validator_address_args[@]}" > "$SOLANA_CONFIG_DIR"/validator.json fi ls -lh "$SOLANA_CONFIG_DIR"/ if $node_type_leader; then ls -lh "$SOLANA_CONFIG_PRIVATE_DIR" fi