#!/usr/bin/env bash # # Creates a fullnode configuration # 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"/bootstrap-leader.json cp -a "$SOLANA_RSYNC_CONFIG_DIR"/ledger "$SOLANA_CONFIG_DIR"/bootstrap-leader-ledger ) fi if $fullnode; then ( set -x $solana_keygen -o "$SOLANA_CONFIG_DIR"/fullnode-id.json $solana_fullnode_config \ --keypair="$SOLANA_CONFIG_DIR"/fullnode-id.json \ "$ip_address_arg" -b 9000 > "$SOLANA_CONFIG_DIR"/fullnode.json ) fi