Updated setup and leader scripts
* Setup will us -b to set validator ports * Leader script fixed to append .log to the log file * Updated readme file
This commit is contained in:
parent
effcef2184
commit
d3005d3ef3
31
README.md
31
README.md
|
@ -61,34 +61,27 @@ before proceeding:
|
||||||
$ git checkout v0.6.1
|
$ git checkout v0.6.1
|
||||||
```
|
```
|
||||||
|
|
||||||
Singlenode Testnet
|
Configuration Setup
|
||||||
---
|
---
|
||||||
|
|
||||||
The fullnode server is initialized with a ledger from stdin and
|
The network is initialized with a genesis ledger and leader/validator configuration files.
|
||||||
generates new ledger entries on stdout. To create the input ledger, we'll need
|
These files can be generated by running the following script.
|
||||||
to create *the mint* and use it to generate a *genesis ledger*. It's done in
|
|
||||||
two steps because the mint-demo.json file contains private keys that will be
|
|
||||||
used later in this demo.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ echo 1000000000 | cargo run --release --bin solana-mint-demo > mint-demo.json
|
$ ./multinode-demo/setup.sh
|
||||||
$ cat mint-demo.json | cargo run --release --bin solana-genesis-demo > genesis.log
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Singlenode Testnet
|
||||||
|
---
|
||||||
|
|
||||||
Before you start a fullnode, make sure you know the IP address of the machine you
|
Before you start a fullnode, make sure you know the IP address of the machine you
|
||||||
want to be the leader for the demo, and make sure that udp ports 8000-10000 are
|
want to be the leader for the demo, and make sure that udp ports 8000-10000 are
|
||||||
open on all the machines you want to test with.
|
open on all the machines you want to test with.
|
||||||
|
|
||||||
Generate a leader configuration file with:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ cargo run --release --bin solana-fullnode-config -- -d > leader.json
|
|
||||||
```
|
|
||||||
|
|
||||||
Now start the server:
|
Now start the server:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ ./multinode-demo/leader.sh > leader-txs.log
|
$ ./multinode-demo/leader.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
To run a performance-enhanced fullnode on Linux, download `libcuda_verify_ed25519.a`. Enable
|
To run a performance-enhanced fullnode on Linux, download `libcuda_verify_ed25519.a`. Enable
|
||||||
|
@ -107,14 +100,8 @@ Multinode Testnet
|
||||||
|
|
||||||
To run a multinode testnet, after starting a leader node, spin up some validator nodes:
|
To run a multinode testnet, after starting a leader node, spin up some validator nodes:
|
||||||
|
|
||||||
Generate the validator's configuration file:
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ cargo run --release --bin solana-fullnode-config -- -b 9000 -d > validator.json
|
$ ./multinode-demo/validator.sh ubuntu@10.0.1.51:~/solana #The leader machine
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
$ ./multinode-demo/validator.sh ubuntu@10.0.1.51:~/solana > validator-txs.log #The leader machine
|
|
||||||
```
|
```
|
||||||
|
|
||||||
As with the leader node, you can run a performance-enhanced validator fullnode by adding
|
As with the leader node, you can run a performance-enhanced validator fullnode by adding
|
||||||
|
|
|
@ -7,4 +7,4 @@ set -x
|
||||||
[[ $(uname) = Linux ]] && sudo sysctl -w net.core.rmem_max=26214400
|
[[ $(uname) = Linux ]] && sudo sysctl -w net.core.rmem_max=26214400
|
||||||
|
|
||||||
cargo run --release --bin solana-fullnode -- \
|
cargo run --release --bin solana-fullnode -- \
|
||||||
-l leader.json < genesis.log tx-*.log > tx-"$(date -u +%Y%m%d%k%M%S%N)"
|
-l leader.json < genesis.log tx-*.log > tx-"$(date -u +%Y%m%d%k%M%S%N)".log
|
||||||
|
|
|
@ -6,4 +6,4 @@ cargo run --release --bin solana-mint-demo <<<"${TOKENS}" > mint-demo.json
|
||||||
cargo run --release --bin solana-genesis-demo < mint-demo.json > genesis.log
|
cargo run --release --bin solana-genesis-demo < mint-demo.json > genesis.log
|
||||||
|
|
||||||
cargo run --release --bin solana-fullnode-config -- -d > leader.json
|
cargo run --release --bin solana-fullnode-config -- -d > leader.json
|
||||||
cargo run --release --bin solana-fullnode-config -- -d > validator.json
|
cargo run --release --bin solana-fullnode-config -- -b 9000 -d > validator.json
|
||||||
|
|
Loading…
Reference in New Issue