Skip to content

Commit c5ee3cb

Browse files
committed
Update README files for tests
1 parent e3b0bbe commit c5ee3cb

File tree

2 files changed

+5
-37
lines changed

2 files changed

+5
-37
lines changed

test-scripts/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Tests can be performed on **localflare** network and include:
1313
Run localflare in `avalanchego` directory:
1414

1515
```bash
16-
./scripts/build.sh. # Build avalanchego
17-
./scripts/localflare.sh. # Run 5 localflare nodes
16+
./scripts/build.sh # Build avalanchego
17+
./scripts/localflare.sh # Run 5 localflare nodes
1818
```
1919

2020
Check that the nodes are running by visiting `http://localhost:9650/ext/health` in your browser.

tests/README.md

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,10 @@ cd ../coreth && go test ./... #coreth unit tests
1414

1515
From the `go-flare/avalanchego` folder, run:
1616
```sh
17-
rm -rf db && ./build/avalanchego --public-ip=127.0.0.1 --http-port=9650 --staking-port=9651 --db-dir=db/node1 --network-id=localflare --staking-tls-cert-file=$(pwd)/staking/local/staker1.crt --staking-tls-key-file=$(pwd)/staking/local/staker1.key --chain-config-dir=$(pwd)/../config/localflare
17+
./scripts/localflare.sh
1818
```
1919

20-
### New Validator Deployment
20+
## Test P-chain Transactions
2121

22-
In a new terminal, run:
23-
```sh
24-
./scripts/test_deploy_validators.sh
25-
```
26-
27-
In 4 separate terminals, run:
28-
29-
```sh
30-
./build/avalanchego --public-ip=127.0.0.1 --http-port=9652 --staking-port=9653 --db-dir=db/node2 --network-id=localflare --bootstrap-ips=127.0.0.1:9651 --bootstrap-ids=NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg --staking-tls-cert-file=$(pwd)/staking/local/staker2.crt --staking-tls-key-file=$(pwd)/staking/local/staker2.key
31-
```
32-
33-
```sh
34-
./build/avalanchego --public-ip=127.0.0.1 --http-port=9654 --staking-port=9655 --db-dir=db/node3 --network-id=localflare --bootstrap-ips=127.0.0.1:9651 --bootstrap-ids=NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg --staking-tls-cert-file=$(pwd)/staking/local/staker3.crt --staking-tls-key-file=$(pwd)/staking/local/staker3.key
35-
```
22+
See the [test-scripts/README.md](../test-scripts/README.md) for instructions.
3623

37-
```sh
38-
./build/avalanchego --public-ip=127.0.0.1 --http-port=9656 --staking-port=9657 --db-dir=db/node4 --network-id=localflare --bootstrap-ips=127.0.0.1:9651 --bootstrap-ids=NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg --staking-tls-cert-file=$(pwd)/staking/local/staker4.crt --staking-tls-key-file=$(pwd)/staking/local/staker4.key
39-
```
40-
41-
```sh
42-
./build/avalanchego --public-ip=127.0.0.1 --http-port=9658 --staking-port=9659 --db-dir=db/node5 --network-id=localflare --bootstrap-ips=127.0.0.1:9651 --bootstrap-ids=NodeID-7Xhw2mDxuDS44j42TCB6U5579esbSt3Lg --staking-tls-cert-file=$(pwd)/staking/local/staker5.crt --staking-tls-key-file=$(pwd)/staking/local/staker5.key
43-
```
44-
45-
Once the start time has elapsed, check that the validators have become active:
46-
47-
```sh
48-
curl -s --location --request POST 'http://localhost:9650/ext/bc/P' \
49-
--header 'Content-Type: application/json' \
50-
--data-raw '{
51-
"jsonrpc": "2.0",
52-
"method": "platform.getCurrentValidators",
53-
"id": 1
54-
}' | jq .result
55-
```

0 commit comments

Comments
 (0)