|
1 | 1 | # Run Development Testnet |
2 | 2 |
|
3 | | -While there is an established test network, namely the [Crab network](./crab.md), which serves as an ideal sandbox for your applications, eliminating any concern about initiating and connecting nodes, among other things. The official test network is designed to fulfill application developers' requirements. However, there may be scenarios where you want to perform low-level tasks. In such cases, creating your own development network can significantly enhance your development, testing, or debugging efficiency. This guide will walk you through the process of establishing a single-node development network. |
| 3 | +Darwinia no longer maintains a public testnet, so spinning up a local development network is the best way to experiment without risking production funds. Creating your own development network significantly enhances your ability to test or debug low-level features. This guide walks you through the process of establishing a single-node development network. |
4 | 4 |
|
5 | 5 | ## Compile darwinia node |
6 | 6 |
|
@@ -61,29 +61,29 @@ While there is an established test network, namely the [Crab network](./crab.md) |
61 | 61 |
|
62 | 62 | ## Start the development node |
63 | 63 |
|
64 | | -After your node compiles, you are ready to start exploring what it does using the darwinia development node. |
| 64 | +After your node compiles, you are ready to start exploring what it does using the Darwinia development node. |
65 | 65 |
|
66 | | -To start the local Crab testnet node: |
| 66 | +To start the local development node: |
67 | 67 |
|
68 | 68 | 1. In the same terminal where you compiled your node, you can now start the node in development mode by running the following command: |
69 | 69 |
|
70 | 70 | ```bash |
71 | | - ./target/release/darwinia --chain crab-dev --alice --tmp --rpc-external --rpc-cors all --unsafe-force-node-key-generation |
| 71 | + ./target/release/darwinia --dev --alice --tmp --rpc-external --rpc-cors all --unsafe-force-node-key-generation |
72 | 72 | ``` |
73 | 73 |
|
74 | | - The darwinia command-line options specify how you want the running node to operate. In this case, the `--chain crab-dev` option specifies that the node runs in development mode using the predefined Crab development chain specification. By default, this option also deletes all active data—such as keys, the blockchain database, and networking information—when you stop the node by pressing Ctrl-C. Using the `--tmp` option ensures that you have a clean working state any time you stop and restart the node. |
| 74 | + The darwinia command-line options specify how you want the running node to operate. In this case, the `--dev` option runs an ephemeral single-node network with predefined accounts. By default, this option also deletes all active data—such as keys, the blockchain database, and networking information—when you stop the node by pressing Ctrl-C. Using the `--tmp` option ensures that you have a clean working state any time you stop and restart the node. |
75 | 75 |
|
76 | 76 | 2. Verify your node is up and running successfully by reviewing the output displayed in the terminal. The terminal should display output similar to this: |
77 | 77 |
|
78 | 78 | ```bash |
79 | 79 | 2025-01-14 17:46:13 darwinia |
80 | 80 | 2025-01-14 17:46:13 ✌️ version 6.8.1-8476af2e40e |
81 | 81 | 2025-01-14 17:46:13 ❤️ by Darwinia Network <hello@darwinia.network>, 2018-2025 |
82 | | - 2025-01-14 17:46:13 📋 Chain specification: Crab2 D |
| 82 | + 2025-01-14 17:46:13 📋 Chain specification: Development |
83 | 83 | 2025-01-14 17:46:13 🏷 Node name: Alice |
84 | 84 | 2025-01-14 17:46:13 👤 Role: AUTHORITY |
85 | | - 2025-01-14 17:46:13 💾 Database: RocksDb at /tmp/substraterhaReX/chains/crab2-d/db/full |
86 | | - 2025-01-14 17:46:13 🪪 Parachain id: Id(2105) |
| 85 | + 2025-01-14 17:46:13 💾 Database: RocksDb at /tmp/substraterhaReX/chains/dev/db/full |
| 86 | + 2025-01-14 17:46:13 🪪 Parachain id: Id(2046) |
87 | 87 | 2025-01-14 17:46:13 🧾 Parachain Account: 5Ec4AhNxga1JYLioRBNxfRnovheDELVbZTRSnKMgvSVPvNcN |
88 | 88 | 2025-01-14 17:46:13 ✍️ Is collating: yes |
89 | 89 | 2025-01-14 17:46:14 assembling new collators for new session 0 at #0 |
@@ -141,4 +141,4 @@ To start the local Crab testnet node: |
141 | 141 | } |
142 | 142 | ``` |
143 | 143 |
|
144 | | -Once the node is up and producing new blocks, you can connect to node to explore more advanced features, such as token transfer and contract development. |
| 144 | +Once the node is up and producing new blocks, you can connect to node to explore more advanced features, such as token transfer and contract development. |
0 commit comments