doc: rename network to cluster

This commit is contained in:
Michael Vines
2019-03-04 08:16:13 -08:00
parent adb4cb43ec
commit 243a4625f1
4 changed files with 12 additions and 12 deletions

View File

@ -77,26 +77,26 @@ console.log(solanaWeb3);
``` ```
## Local Network ## Local Network
The `solana-localnet` program is provided to easily start a test Solana network The `solana-localnet` program is provided to easily start a test Solana cluster
locally on your machine. Docker must be installed. The JSON RPC endpoint of locally on your machine. Docker must be installed. The JSON RPC endpoint of
the local network is `http://localhost:8899`. the local cluster is `http://localhost:8899`.
To start, first fetch the latest Docker image by running: To start, first fetch the latest Docker image by running:
```bash ```bash
$ npx solana-localnet update $ npx solana-localnet update
``` ```
Then run the following command to start the network Then run the following command to start the cluster
```bash ```bash
$ npx solana-localnet up $ npx solana-localnet up
``` ```
While the network is running logs are available with: While the cluster is running logs are available with:
```bash ```bash
$ npx solana-localnet logs -f $ npx solana-localnet logs -f
``` ```
Stop the network with: Stop the cluster with:
```bash ```bash
$ npx solana-localnet down $ npx solana-localnet down
``` ```

View File

@ -26,9 +26,9 @@ usage: $0 [update|up|down|logs|deploy] [command-specific options]
Operate a local testnet Operate a local testnet
update - Update the image from dockerhub.com update - Update the image from dockerhub.com
up - Start the network up - Start the cluster
down - Stop the network down - Stop the cluster
logs - Display network logging logs - Display cluster logging
deploy - Deploy a native program. deploy - Deploy a native program.
@ -52,7 +52,7 @@ Operate a local testnet
deploy-specific options: deploy-specific options:
program - The program to deploy. program - The program to deploy.
Note that deployments are discarded on network stop Note that deployments are discarded on cluster stop
EOF EOF
exit $exitcode exit $exitcode

View File

@ -2,8 +2,8 @@
Before trying any of the examples in this directory please populate the `lib/` Before trying any of the examples in this directory please populate the `lib/`
directory by running `npm install`. directory by running `npm install`.
Additionally most of the examples attempt to connect to a local network. Start Additionally most of the examples attempt to connect to a local cluster. Start
your local network first by running: your local cluster first by running:
```bash ```bash
$ npx solana-localnet update $ npx solana-localnet update
$ npx solana-localnet up $ npx solana-localnet up

View File

@ -1,7 +1,7 @@
// @flow // @flow
/** /**
* The connection url to use when running unit tests against a live network * The connection url to use when running unit tests against a live cluster
*/ */
export const url = 'http://localhost:8899/'; export const url = 'http://localhost:8899/';