buzzup-chain/README.md

74 lines
1.7 KiB
Markdown
Raw Normal View History

2024-11-03 12:57:12 +08:00
#
*(canto_1264-1)*
2024-11-03 13:10:45 +08:00
```bash
cantod collect-gentxs
cantod collect-gentxs 2>&1 | jq '.app_message.genutil.gen_txs[0].body.memo'
2024-11-03 14:27:48 +08:00
"a4eec64d88314553eee08206d8e2a986562ef310@193.200.130.186:26656"
2024-11-03 13:10:45 +08:00
```
下载 Genesis 文件:
```bash
wget https://cmd.jxm.cool/zerone/testnet-chain/raw/branch/master/genesis.json -P $HOME/.cantod/config/
```
Start cantod by creating a systemd service to run the node in the background:
通过创建 systemd 服务在后台运行节点来启动 cantod
Edit the file: sudo nano /etc/systemd/system/cantod.service 编辑文件: sudo nano /etc/systemd/system/cantod.service
Then copy and paste the following text into your service file. Be sure to edit as you see fit.
然后将以下文本复制并粘贴到您的服务文件中。请务必按照您认为合适的方式进行编辑。
```bash
[Unit]
Description=Canto Node
After=network.target
[Service]
Type=simple
User=root
WorkingDirectory=/root/
ExecStart=/root/go/bin/cantod start --trace --log_level info --json-rpc.api eth,txpool,net,debug,web3 --api.enable
Restart=on-failure
StartLimitInterval=0
RestartSec=3
LimitNOFILE=65535
LimitMEMLOCK=209715200
[Install]
WantedBy=multi-user.target
```
## Start the node 启动节点
#### 重新加载服务文件:
```
sudo systemctl daemon-reload
```
#### 创建 symlinlk
```
sudo systemctl enable cantod.service
```
#### Start the node: 启动节点:
```
sudo systemctl start cantod && journalctl -u cantod -f
```
然后,您应该获取几行日志文件,然后看到: No addresses to dial. Falling back to seeds module=pex server=node
这是一个指标,到目前为止一切都在进行中,现在您需要创建您的验证者 txn。^c 并执行后续步骤。