Skip to content

Commit 2775c36

Browse files
Merge pull request #21 from XinFinOrg/add-xdposchain-privatenet
2 parents 6609135 + ea7a790 commit 2775c36

File tree

7 files changed

+45
-0
lines changed

7 files changed

+45
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Deploy Private Blockchain With XDC2.0 Consensus
3+
---
4+
5+
6+
# Deploy Private Blockchain With XDC2.0 Consensus
7+
8+
## Deploy With Wizard UI
9+
10+
1. Pull `start.sh` script from the generator Github repo and run. This will start a local webserver.
11+
```
12+
curl -O https://raw.githubusercontent.com/XinFinOrg/Subnet-Deployment/v2.1.0/container-manager/start_xdpos.sh
13+
chmod +x start_xdpos.sh
14+
./start_xdpos.sh
15+
```
16+
17+
2. Go to [http://localhost:5210/](http://localhost:5210) in your browser.
18+
<details>
19+
<summary>If you are running this on a remote server.</summary>
20+
<p>
21+
- if this is running on your server, first use ssh tunnel: <code>ssh -N -L localhost:5210:localhost:5210 USERNAME@IP_ADDRESS -i SERVER_KEY_FILE</code>
22+
<br>
23+
- if you are using VSCode Remote Explorer, ssh tunnel will be available by default
24+
</p>
25+
</details>
26+
27+
3. Input your desired configuration.
28+
![Config](../img/privatenet_configs.png)
29+
30+
4. Submit and continue in your terminal with the below command.
31+
```
32+
cd generated;
33+
./docker-up.sh machine1;
34+
```
35+
![Success](../img/privatenet_generate_success.png)
36+
5. Confirm the private blockchain is working correcly by running check scripts.
37+
```
38+
./scripts/check-peer.sh
39+
```
40+
![Check Peer](../img/privatenet_check_peer.png)
41+
```
42+
./scripts/check-mining.sh
43+
```
44+
![Check Mining](../img/privatenet_check_mining.png)
36.7 KB
Loading
15.9 KB
Loading
137 KB
Loading
285 KB
Loading
64.2 KB
Loading

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ nav:
7777
- Migrating from EVM to XDC: ./xdcchain/evmtoxdc.md
7878
- Wallet Configuration: ./xdcchain/developers/wallet-configuration.md
7979
- Get XDC Listed: ./xdcchain/developers/getxdclisted.md
80+
- XDC2.0 Private Network: ./xdcchain/developers/xdposchain_privatenet.md
8081

8182
- Node Operators:
8283
- Node Architecture: ./xdcchain/developers/node_operators/node_architecture.md

0 commit comments

Comments
 (0)