Delete fullnode-config/
This commit is contained in:
@ -19,9 +19,6 @@ usage: $0 [-n num_tokens] [-l] [-p] [-t node_type]
|
||||
Creates a fullnode configuration
|
||||
|
||||
-n num_tokens - Number of tokens to create
|
||||
-l - Detect network address from local machine configuration, which
|
||||
may be a private IP address unaccessible on the Intenet (default)
|
||||
-p - Detect public address using public Internet servers
|
||||
-t node_type - Create configuration files only for this kind of node. Valid
|
||||
options are bootstrap-leader or fullnode. Creates configuration files
|
||||
for both by default
|
||||
@ -30,7 +27,6 @@ EOF
|
||||
exit $exitcode
|
||||
}
|
||||
|
||||
ip_address_arg=-l
|
||||
num_tokens=1000000000
|
||||
bootstrap_leader=true
|
||||
fullnode=true
|
||||
@ -40,12 +36,6 @@ while getopts "h?n:lpt:" opt; do
|
||||
usage
|
||||
exit 0
|
||||
;;
|
||||
l)
|
||||
ip_address_arg=-l
|
||||
;;
|
||||
p)
|
||||
ip_address_arg=-p
|
||||
;;
|
||||
n)
|
||||
num_tokens="$OPTARG"
|
||||
;;
|
||||
@ -91,26 +81,13 @@ if $bootstrap_leader; then
|
||||
--ledger "$SOLANA_RSYNC_CONFIG_DIR"/ledger \
|
||||
--mint "$SOLANA_CONFIG_DIR"/mint-id.json \
|
||||
--num_tokens "$num_tokens"
|
||||
)
|
||||
|
||||
# Create bootstrap leader configuration
|
||||
(
|
||||
set -x
|
||||
$solana_fullnode_config \
|
||||
--keypair="$SOLANA_CONFIG_DIR"/bootstrap-leader-id.json \
|
||||
"$ip_address_arg" > "$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
|
||||
|
Reference in New Issue
Block a user