Run DO Testnet Node
The difference between the test network and the official network is the modification of the configuration file.
Download Testnet program & config.json File​
Version | Download | Update content | Note |
---|---|---|---|
v2.5.0 | don_v2.5.0_c2bfdda_testnet | ||
v2.4.0 | don_v2.4.0_767e36a_testnet | 1. Resolved the issue of concurrency handling for swap-type transactions. 2.Added an interface to query blocks through transaction hashes. | |
v2.3.0 | don_v2.3.0_cb089c7_testnet | ||
v2.2.1 | don_v2.2.1_9443001_testnet | ||
v2.2.0 | don_v2.2.0_8f7e317_testnet | ||
v2.1.0 | don_v2.1.0_785ad2f_testnet | ||
v2.0.2 | don_v2.0.2_42323c1_testnet | 1. Solve the problem of connection failure caused by multiple connections to certain nodes 2. Resolve the issue of VRF validation failure for some nodes when there are differences in the node list. | Update and restart the program. |
v2.0.0 | don_v2.0.0_019d77a_testnet |
- Open port 22288 and 22287
Run TDO Node​
If the downloaded program has been decompressed and placed on your server, skip step 1
.
- Download the test network program(don_v2.5.0_xxxx_testnet), Put a program in a directory, make sure that the directory has read, write, and execute permissions and above.
- Download
wget https://fastcdn.donetwork.io/testnet/don_v2.5.0_c2bfdda_testnet.zip
- Unzip
unzip don_v2.5.x_xxxxx_testnet.zip
tips:
If the prompt is -bash: unzip: command not found
, you need to install the decompression tool.
- Ubuntu system
sudo apt-get update
sudo apt-get install unzip
- Fedora system
sudo dnf install unzip
- CentOS system
sudo yum install unzip
- Modify the execution authority of the program.
chmod +x don_v2.5.x_xxxx_testnet
- Run the program. the parameter
-m
is used to enable menu, press0
to exit the current program.
./don_v2.5.x_xxxx_testnet -m
- Command-line display content
the balance is zero
UTC Time: 2024/04/26 02:05:39
Ntp Time: 2024/04/26 02:05:39
ThreadNumber:1310
____ _____ __ __ ____ __ __ ______ ______ __ __
/\ _`\ /\ __`\/\ \/\ \ /\ _`\ /\ \/\ \/\ _ \/\__ _\ /\ \/\ \
\ \ \/\ \ \ \/\ \ \ `\\ \ \ \ \/\_\\ \ \_\ \ \ \L\ \/_/\ \/ \ \ `\\ \
\ \ \ \ \ \ \ \ \ \ , ` \ \ \ \/_/_\ \ _ \ \ __ \ \ \ \ \ \ , ` \
\ \ \_\ \ \ \_\ \ \ \`\ \ \ \ \L\ \\ \ \ \ \ \ \/\ \ \_\ \__\ \ \`\ \
\ \____/\ \_____\ \_\ \_\ \ \____/ \ \_\ \_\ \_\ \_\/\_____\\ \_\ \_\
\/___/ \/_____/\/_/\/_/ \/___/ \/_/\/_/\/_/\/_/\/_____/ \/_/\/_/
Version: 1_2.0.2_t
Base58:0x65Aa2da93b3880Ee370DA96c5Ef04b7638cC7825
Balance:0.00000000
Block top:0
1.Transaction
2.Stake
3.Unstake
4.Invest
5.Disinvest
6.Get Rewards
7.PrintAccountInfo
8.Deploy contract
9.Call contract
10.Account Manager
99.Advanced_Menu
0.Exit
Please input your choice:
- check the automatically generated directories and files under the current directory.
modify the
config.json
file (Important)
Modify Or Replace configuration file​
Replace the config.json
​
- Download the config.json files we have configured to replace
config.json
files on your test node. - Open server security group 22288 and 22287 ports.
- Start the program for data synchronization and check if the height has increased.
Version: 1_2.0.2_t
Base58:0x65Aa2da93b3880Ee370DA96c5Ef04b7638cC7825
Balance:25001.00000000
Block top:32
Modify the config.json
​
1.Open the config.json
file and modify the port and IP of the file.
The following is the complete configuration, which can be copied and replaced with the content of the config file
tips:
Fill in your own public IP address in the ip
field
{
"http_callback": {
"ip": "192.168.1.123",
"path": "/donetServer/app/syncMessage",
"port": 6061
},
"http_port": 22288,
"info": {
"logo": "",
"name": ""
},
"ip": "",
"log": {
"console": false,
"level": "off",
"path": "./logs"
},
"rpc": true,
"server": [
"54.177.31.10",
"54.176.251.137"
],
"server_port": 22287,
"version": "1.0.14"
}
http_callback
Message callback settings for setting RPC nodes.http_port
The port for RPC interface calls,modify to 22288, it is necessary to enable server security groups.ip
The public IP address of this node,You need to fill it yourself.log
Directory address for log output information.rpc
Is the RPC service enabled? True indicates enabled, while false indicates not enabled.server
Used to synchronize other active test addresses in the block DO network.server_port
To synchronize block ports,modify to 22287, it is necessary to enable server security groups.version
Current program version.The ports of the test network and the official network should be distinguished. If the settings are the same, the test network will synchronize the official network data and cannot complete the test.
- Open server security group 22288 and 22287 ports.
Get TDO coins​
- Open the faucet test TDO coin received page.
- Enter your node wallet address to get the test TDO.
tips:
There will be a delay in application. If you have not received the payment, you can continue to operate after five minutes
To check whether the TDO has been received, you can check the balance at the your node or enter the testing website to query transactions through the address.
After successful received, Go to your testing node for staking and investment operations.
Run the program. the parameter
-m
is used to enable menu.
./don_v2.5.0_xxxx_testnet -m
First, check if the balance has been received.
Version: 1_2.0.0_t
Base58:0x65Aa2da93b3880Ee370DA96c5Ef04b7638cC7825
Balance:25001.00000000
Block top:32
1.Transaction
2.Stake
3.Unstake
4.Invest
5.Disinvest
6.Get Rewards
7.PrintAccountInfo
8.Deploy contract
9.Call contract
10.Account Manager
99.Advanced_Menu
0.Exit
Please input your choice:
To make your node a validation node, you need to Stake
and Invest
at least 520,000 TDOs.
Verifier stake: 20,000TDO
Invest pledge: 500,000TDO,A minimum investment of 1,500TDO for a single invest address.
Verifier commission+Verifier pledge minimum pledge: 520,000TDO
Verifier commission limit 1,500,000TDO
warning
Test node completes the latest block synchronization, and can proceed with staking and investment operations.
Stake​
Press 2 to enter the stake interface.
Enter the amount to be staked,the minimum stake amount is 20,000.
stake addr: 0x65Aa2da93b3880Ee370DA96c5Ef04b7638cC7825
Please enter the amount to stake:
20000
Enter Enter
,The stake is completed.
After the operation, check the balance changes or test the network to see if the pledge is successful
Invest​
Press 4 to enter the investment interface and enter your address.
AddrList:
0x65Aa2da93b3880Ee370DA96c5Ef04b7638cC7825 [default]
Please enter your addr:
0x65Aa2da93b3880Ee370DA96c5Ef04b7638cC7825
Enter the target address to invest in
Please enter the addr you want to invest to:
0x65Aa2da93b3880Ee370DA96c5Ef04b7638cC7825
Enter the amount to be invested (minimum investment amount is 1,500)
Please enter the amount to invest:
1500
Enter invest type (The default value is 0: investment in the network)
Please enter invest type: (0: NetLicence)
0
Enter Enter
,Complete the investment.
You can choose to generate multiple addresses, distribute your TDO coins, and invest your nodes.
After completing the above operations, your testing node can perform transaction signing, contract issuance, development testing, and other operations.
Question​
What should I do if I synchronize the official data?​
Change the port number in the config.json file, delete synchronized blocks, restart the program, and perform resynchronization
```
rm -rf data.db
```
Why is there an error message when receiving a wallet address?​
If prompted with Please fill in the correct node address!
, your wallet address is not a test node wallet, and we will check if your address exists in the node list.
What should I do if the balance remains unchanged?​
Check if it is synchronized to the latest block height.
Repeat the TDO coin application process.
What should I do if the data is not synchronized?​
Check if your server can access the external network.
Check if the security group has opened 22288 and 22287 ports.
Check if the ip
field in the config.json file is configured with your server's public IP address.
How can I view my node information?​
Open the browser and enter http://your-public-ip:22288/info View your node information
How to conduct DO development?​
View details on DO apis