@@ -110,13 +110,13 @@ sudo bash -c "cat >/etc/security/limits.d/90-solana-nofiles.conf <<EOF
110
110
* - nofile 1000000
111
111
EOF"
112
112
113
- echo ' Preparing directories and file system for Solana installation'
113
+ echo ' Preparing fs for Solana installation'
114
114
sudo mkdir /var/solana
115
115
sudo mkdir /var/solana/data
116
116
sudo mkdir /var/solana/accounts
117
117
118
118
if [[ " $STACK_ID " != " none" ]]; then
119
- echo " Install and enable CloudFormation helper scripts"
119
+ echo " Install CloudFormation helper scripts"
120
120
mkdir -p /opt/aws/
121
121
pip3 install https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-py3-latest.tar.gz
122
122
sudo ln -s /usr/local/init/ubuntu/cfn-hup /etc/init.d/cfn-hup
@@ -213,12 +213,9 @@ sudo usermod -aG sudo solana
213
213
cd /home/solana
214
214
sudo mkdir ./bin
215
215
216
- # See details in https://github.com/aws-samples/aws-blockchain-node-runners/issues/31
217
216
ln -s /var/solana/data/ledger /home/solana
218
- ulimit -n 1000000
219
217
220
218
echo " Downloading x86 binaries for version v$SOLANA_VERSION "
221
-
222
219
sudo wget -q https://github.com/solana-labs/solana/releases/download/v$SOLANA_VERSION /solana-release-x86_64-unknown-linux-gnu.tar.bz2
223
220
sudo tar -xjvf solana-release-x86_64-unknown-linux-gnu.tar.bz2
224
221
sudo mv solana-release/bin/* ./bin/
@@ -237,22 +234,22 @@ else
237
234
fi
238
235
if [[ " $SOLANA_NODE_TYPE " == " consensus" ]]; then
239
236
if [[ $NODE_IDENTITY_SECRET_ARN == " none" ]]; then
240
- echo " Storing generated node identity to AWS Secrets Manager"
237
+ echo " Store node identity to AWS Secrets Manager"
241
238
NODE_IDENTITY=$( sudo ./solana-keygen pubkey /home/solana/config/vote-account-keypair.json)
242
239
sudo aws secretsmanager create-secret --name " solana-node/" $NODE_IDENTITY --description " Solana Node Identity Secret created for stack $CF_STACK_NAME " --secret-string file:///home/solana/config/validator-keypair.json --region $AWS_REGION
243
240
fi
244
241
if [[ $VOTE_ACCOUNT_SECRET_ARN == " none" ]]; then
245
242
echo " Create Vote Account Secret"
246
243
sudo ./solana-keygen new --no-passphrase -o /home/solana/config/vote-account-keypair.json
247
244
NODE_IDENTITY=$( sudo ./solana-keygen pubkey /home/solana/config/vote-account-keypair.json)
248
- echo " Storing Vote Account Secret to AWS Secrets Manager"
245
+ echo " Store Vote Account Secret to AWS Secrets Manager"
249
246
sudo aws secretsmanager create-secret --name " solana-node/" $NODE_IDENTITY --description " Solana Vote Account Secret created for stack $CF_STACK_NAME " --secret-string file:///home/solana/config/vote-account-keypair.json --region $AWS_REGION
250
247
251
248
if [[ $AUTHORIZED_WITHDRAWER_ACCOUNT_SECRET_ARN == " none" ]]; then
252
249
echo " Create Authorized Withdrawer Account Secret"
253
250
sudo ./solana-keygen new --no-passphrase -o /home/solana/config/authorized-withdrawer-keypair.json
254
251
NODE_IDENTITY=$( sudo ./solana-keygen pubkey /home/solana/config/authorized-withdrawer-keypair.json)
255
- echo " Storing Authorized Withdrawer Account to AWS Secrets Manager"
252
+ echo " Store Authorized Withdrawer Account to AWS Secrets Manager"
256
253
sudo aws secretsmanager create-secret --name " solana-node/" $NODE_IDENTITY --description " Authorized Withdrawer Account Secret created for stack $CF_STACK_NAME " --secret-string file:///home/solana/config/authorized-withdrawer-keypair.json --region $AWS_REGION
257
254
258
255
else
@@ -269,13 +266,13 @@ if [[ "$SOLANA_NODE_TYPE" == "consensus" ]]; then
269
266
echo " Creating Vote Account on-chain"
270
267
sudo ./solana create-vote-account /home/solana/config/vote-account-keypair.json /home/solana/config/validator-keypair.json /home/solana/config/authorized-withdrawer-keypair.json
271
268
272
- echo " Deleting Transaction Funding Account Secret from the local disc"
269
+ echo " Delete Transaction Funding Account Secret from the local disc"
273
270
sudo rm /root/.config/solana/id.json
274
271
else
275
272
echo " Vote Account not created. Please create it manually: https://docs.solana.com/running-validator/validator-start#create-vote-account"
276
273
fi
277
274
278
- echo " Deleting Authorized Withdrawer Account from the local disc"
275
+ echo " Delete Authorized Withdrawer Account from the local disc"
279
276
sudo rm /home/solana/config/authorized-withdrawer-keypair.json
280
277
else
281
278
echo " Get Vote Account Secret from AWS Secrets Manager"
0 commit comments